From: kub Date: Mon, 25 Mar 2024 17:49:19 +0000 (+0100) Subject: libretro, add Pico pad overlay and storyware pages handling X-Git-Tag: v2.00~84 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f9901e09806c5d5e2010fa81326b5b120b80432;p=picodrive.git libretro, add Pico pad overlay and storyware pages handling --- diff --git a/Makefile b/Makefile index 3fe87cbe..7b87043e 100644 --- a/Makefile +++ b/Makefile @@ -72,8 +72,10 @@ CFLAGS += $(call chkCCflag, -fno-caller-saves -fno-guess-branch-probability -fno CFLAGS += $(call chkCCflag, -fno-tree-loop-if-convert -fipa-pta -fno-ipa-cp) endif else +ifneq ($(STATIC_LINKING), 1) CFLAGS += $(call chkCCflag, -flto) endif +endif # revision info from repository if this not a tagged release ifeq "$(shell git describe --tags --exact-match HEAD 2>/dev/null)" "" diff --git a/Makefile.libretro b/Makefile.libretro index d849be81..9a2e2ebb 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -30,6 +30,7 @@ CFLAGS ?= CFLAGS += -I platform/libretro/libretro-common/include CFLAGS += -I platform/libretro/libretro-common/include/compat CFLAGS += -I platform/libretro/libretro-common/include/encodings +CFLAGS += -I platform/libretro/libretro-common/include/formats CFLAGS += -I platform/libretro/libretro-common/include/streams CFLAGS += -I platform/libretro/libretro-common/include/string CFLAGS += -I platform/libretro/libretro-common/include/vfs diff --git a/jni/Android.mk b/jni/Android.mk index f89e1324..b4d0143c 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -54,7 +54,18 @@ endif include $(COMMON_DIR)/common.mak SOURCES_C := $(LIBRETRO_DIR)/libretro.c \ + $(LIBRETRO_COMM_DIR)/formats/png/rpng.c \ + $(LIBRETRO_COMM_DIR)/streams/trans_stream.c \ + $(LIBRETRO_COMM_DIR)/streams/trans_stream_pipe.c \ + $(LIBRETRO_COMM_DIR)/streams/trans_stream_zlib.c \ + $(LIBRETRO_COMM_DIR)/file/file_path_io.c \ + $(LIBRETRO_COMM_DIR)/file/file_path.c \ + $(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \ + $(LIBRETRO_COMM_DIR)/time/rtime.c \ + $(LIBRETRO_COMM_DIR)/string/stdstring.c \ + $(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \ $(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \ + $(LIBRETRO_COMM_DIR)/compat/compat_strl.c \ $(COMMON_DIR)/mp3.c \ $(COMMON_DIR)/mp3_sync.c \ $(COMMON_DIR)/mp3_dummy.c \ diff --git a/platform/libretro/libretro-common/file/file_path.c b/platform/libretro/libretro-common/file/file_path.c index 320c5a2d..c696ff04 100644 --- a/platform/libretro/libretro-common/file/file_path.c +++ b/platform/libretro/libretro-common/file/file_path.c @@ -24,13 +24,12 @@ #include #include #include -#include +#include #include #include #include -#include #include #include #include