Unverified Commit 23a0e594 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #86 from Poligraf/retrofw

add retrofw target
parents 408da091 d2a2a961
Pipeline #52113 passed with stages
in 9 minutes and 41 seconds
......@@ -79,6 +79,10 @@ include:
- project: 'libretro-infrastructure/ci-templates'
file: '/tvos-arm64.yml'
# OpenDingux
- project: 'libretro-infrastructure/ci-templates'
file: '/dingux-mips32.yml'
#################################### MISC ##################################
# Stages for building
......@@ -207,3 +211,10 @@ libretro-build-libnx-aarch64:
extends:
- .libretro-libnx-static-retroarch-master
- .core-defs
# RetroFW
libretro-build-retrofw-mips32:
extends:
- .libretro-retrofw-mips32-make-default
- .core-defs
......@@ -284,6 +284,22 @@ else ifneq (,$(findstring armv,$(platform)))
endif
PLATFORM_DEFINES += -DARM
#RETROFW
else ifeq ($(platform), retrofw)
TARGET := $(TARGET_NAME)_libretro.so
CC = /opt/retrofw-toolchain/usr/bin/mipsel-linux-gcc
CC_AS = /opt/retrofw-toolchain/usr/bin/mipsel-linux-as
CXX = /opt/retrofw-toolchain/usr/bin/mipsel-linux-g++
AR = /opt/retrofw-toolchain/usr/bin/mipsel-linux-ar
fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined
CFLAGS := -DFRONTEND_SUPPORTS_RGB565 -DLOWRES -DINLINE="inline" -DM16B
CFLAGS += -ffast-math -march=mips32 -mtune=mips32 -mhard-float
CFLAGS += -falign-functions=1 -falign-jumps=1 -falign-loops=1
CFLAGS += -fomit-frame-pointer -ffast-math
CFLAGS += -funsafe-math-optimizations -fsingle-precision-constant -fexpensive-optimizations
CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops
# emscripten
else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
......@@ -323,6 +339,9 @@ ifeq ($(DEBUG), 1)
else ifeq ($(platform), emscripten)
CFLAGS += -O2
CXXFLAGS += -O2
else ifeq ($(platform), retrofw)
CFLAGS += -Ofast
CXXFLAGS += -Ofast
else
CFLAGS += -O3
CXXFLAGS += -O3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment