Skip to content

Commit

Permalink
Merge pull request #157 from Poligraf/retrofw
Browse files Browse the repository at this point in the history
add retrofw target
  • Loading branch information
drhelius authored Dec 3, 2021
2 parents cd9c5f7 + f09cb16 commit 14da785
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ libretro-build-rs90-odbeta-mips32:
- .libretro-rs90-odbeta-mips32-make-default
- .core-defs

# RetroFW
libretro-build-retrofw-mips32:
extends:
- .libretro-retrofw-mips32-make-default
- .core-defs

#################################### MISC ##################################
# Emscripten
libretro-build-emscripten:
Expand Down
11 changes: 11 additions & 0 deletions platforms/libretro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,17 @@ else ifeq ($(platform), gcw0)
PLATFORM_DEFINES := -DCC_RESAMPLER -DCC_RESAMPLER_NO_HIGHPASS
CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
CXXFLAGS += $(CFLAGS)
# RETROFW
else ifeq ($(platform), retrofw)
TARGET := $(TARGET_NAME)_libretro.so
CC = /opt/retrofw-toolchain/usr/bin/mipsel-linux-gcc
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=$(CORE_DIR)/link.T
PLATFORM_DEFINES := -DCC_RESAMPLER -DCC_RESAMPLER_NO_HIGHPASS
CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32 -mhard-float
CXXFLAGS += $(CFLAGS)
# PS2
else ifeq ($(platform), ps2)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
Expand Down

0 comments on commit 14da785

Please sign in to comment.