aboutsummaryrefslogtreecommitdiff
path: root/patches/gambatte
diff options
context:
space:
mode:
authorneonloop2021-08-10 00:16:40 +0000
committerneonloop2021-08-10 00:16:40 +0000
commitebcd69fef4208af05aea6b1f963db1a9613bc470 (patch)
tree1c44f731176dc7479d843dd1b8e2e58c4100b87c /patches/gambatte
parent8ad26356f5e92bd396e58290217da55858345a4e (diff)
downloadpicoarch-ebcd69fef4208af05aea6b1f963db1a9613bc470.tar.gz
picoarch-ebcd69fef4208af05aea6b1f963db1a9613bc470.tar.bz2
picoarch-ebcd69fef4208af05aea6b1f963db1a9613bc470.zip
Adds mame2000 core and fixes options/scaler
Diffstat (limited to 'patches/gambatte')
-rw-r--r--patches/gambatte/0001-trimui-build.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/patches/gambatte/0001-trimui-build.patch b/patches/gambatte/0001-trimui-build.patch
new file mode 100644
index 0000000..9beb11b
--- /dev/null
+++ b/patches/gambatte/0001-trimui-build.patch
@@ -0,0 +1,50 @@
+diff --git a/Makefile.libretro b/Makefile.libretro
+index f41fcc2..50a1134 100644
+--- a/Makefile.libretro
++++ b/Makefile.libretro
+@@ -368,6 +368,21 @@ else ifeq ($(platform), gcw0)
+ CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
+ CXXFLAGS += $(CFLAGS)
+
++# Trimui
++else ifeq ($(platform), trimui)
++ TARGET := $(TARGET_NAME)_libretro.so
++ CC = $(CROSS_COMPILE)gcc
++ CXX = $(CROSS_COMPILE)g++
++ AR = $(CROSS_COMPILE)ar
++ SHARED := -shared -Wl,--version-script=$(version_script)
++ LDFLAGS += -fno-PIC -flto
++ PLATFORM_DEFINES := -DCC_RESAMPLER -DCC_RESAMPLER_NO_HIGHPASS
++ CFLAGS += -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s -mtune=arm926ej-s -fno-PIC -flto
++ OPTIMIZE := -Ofast -DNDEBUG
++ ifeq (,$(DEBUG))
++ LDFLAGS += -s
++ endif
++
+ # RETROFW
+ else ifeq ($(platform), retrofw)
+ TARGET := $(TARGET_NAME)_libretro.so
+@@ -622,10 +637,23 @@ ifneq (,$(findstring msvc,$(platform)))
+ CFLAGS += -MT
+ CXXFLAGS += -MT
+ endif
++ifneq (,$(OPTIMIZE))
++ CFLAGS += $(OPTIMIZE)
++ CXXFLAGS += $(OPTIMIZE)
++else
+ CFLAGS += -O2 -DNDEBUG
+ CXXFLAGS += -O2 -DNDEBUG
+ endif
+
++endif
++
++ifeq ($(PROFILE), GENERATE)
++ CFLAGS += -fprofile-generate=./profile/gambatte
++ LDFLAGS += -lgcov
++else ifeq ($(PROFILE), APPLY)
++ CFLAGS += -fprofile-use -fprofile-dir=../profile/gambatte -fbranch-probabilities
++endif
++
+ ifeq (,$(findstring msvc,$(platform)))
+ CXXFLAGS += -fno-exceptions -fno-rtti
+ CXXFLAGS += -std=c++98