diff options
author | neonloop | 2021-08-10 00:16:40 +0000 |
---|---|---|
committer | neonloop | 2021-08-10 00:16:40 +0000 |
commit | ebcd69fef4208af05aea6b1f963db1a9613bc470 (patch) | |
tree | 1c44f731176dc7479d843dd1b8e2e58c4100b87c /patches/fbalpha2012/0001-trimui-build.patch | |
parent | 8ad26356f5e92bd396e58290217da55858345a4e (diff) | |
download | picoarch-ebcd69fef4208af05aea6b1f963db1a9613bc470.tar.gz picoarch-ebcd69fef4208af05aea6b1f963db1a9613bc470.tar.bz2 picoarch-ebcd69fef4208af05aea6b1f963db1a9613bc470.zip |
Adds mame2000 core and fixes options/scaler
Diffstat (limited to 'patches/fbalpha2012/0001-trimui-build.patch')
-rw-r--r-- | patches/fbalpha2012/0001-trimui-build.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/patches/fbalpha2012/0001-trimui-build.patch b/patches/fbalpha2012/0001-trimui-build.patch new file mode 100644 index 0000000..d1710ab --- /dev/null +++ b/patches/fbalpha2012/0001-trimui-build.patch @@ -0,0 +1,48 @@ +diff --git a/svn-current/trunk/makefile.libretro b/svn-current/trunk/makefile.libretro +index 3cff287..f619a20 100644 +--- a/svn-current/trunk/makefile.libretro ++++ b/svn-current/trunk/makefile.libretro +@@ -334,6 +334,21 @@ else ifeq ($(platform), gcw0) + CFLAGS += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float + CXXFLAGS += -std=gnu++11 -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float + ++# 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,-no-undefined -Wl,--version-script=$(LIBRETRO_DIR)/link.T ++ LDFLAGS += -fno-PIC -flto ++ CFLAGS += -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s -mtune=arm926ej-s -fno-PIC -flto ++ CXXFLAGS += -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s -mtune=arm926ej-s -fno-PIC -flto -DUSE_CYCLONE ++ OPTIMIZE := -Ofast -DNDEBUG ++ ifeq (,$(DEBUG)) ++ LDFLAGS += -s ++ endif ++ + # Windows MSVC 2003 Xbox 1 + else ifeq ($(platform), xbox1_msvc2003) + TARGET := $(TARGET_NAME)_libretro_xdk1.lib +@@ -700,11 +715,21 @@ endif + ifeq ($(DEBUG), 1) + CFLAGS += -O0 -g + CXXFLAGS += -O0 -g ++else ifneq (,$(OPTIMIZE)) ++ CFLAGS += $(OPTIMIZE) ++ CXXFLAGS += $(OPTIMIZE) + else + CFLAGS += -O2 -DNDEBUG + CXXFLAGS += -O2 -DNDEBUG + endif + ++ifeq ($(PROFILE), GENERATE) ++ CFLAGS += -fprofile-generate=./profile/fbalpha2012 ++ LDFLAGS += -lgcov ++else ifeq ($(PROFILE), APPLY) ++ CFLAGS += -fprofile-use -fprofile-dir=../profile/fbalpha2012 -fbranch-probabilities ++endif ++ + ifeq ($(platform), sncps3) + WARNINGS_DEFINES = + else ifneq (,$(findstring msvc,$(platform))) |