Merge pull request #18913 from emuall/1.7_libretro

fix libretro compile error
This commit is contained in:
Henrik Rydgård 2024-03-09 10:47:03 +07:00 committed by GitHub
commit 324825d536
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 2 deletions

View File

@ -17,6 +17,8 @@ INCFLAGS += \
-I$(CORE_DIR) \
-I$(COMMONDIR) \
-I$(CORE_DIR)/libretro \
-I$(EXTDIR)/libadrenotools/lib/linkernsbypass \
-I$(EXTDIR)/libadrenotools/include \
-I$(EXTDIR)/openxr \
-I$(EXTDIR)/glslang \
-I$(EXTDIR)/glslang-build \
@ -566,6 +568,14 @@ SOURCES_CXX += $(COMMONDIR)/MemArenaPosix.cpp \
$(EXTDIR)/glslang/glslang/OSDependent/Unix/ossource.cpp
endif
ifeq ($(TARGET_ARCH),arm64)
SOURCES_CXX += \
$(EXTDIR)/libadrenotools/src/driver.cpp \
$(EXTDIR)/libadrenotools/lib/linkernsbypass/android_linker_ns.cpp \
$(EXTDIR)/libadrenotools/lib/linkernsbypass/elf_soname_patcher.cpp
endif
SOURCES_CXX += \
$(COMMONDIR)/Render/Text/draw_text.cpp \
$(EXTDIR)/jpge/jpgd.cpp \

View File

@ -77,7 +77,7 @@ COREFLAGS += -DINLINE="inline" -DPPSSPP -DUSE_FFMPEG -DWITH_UPNP -DMOBILE_DEVICE
LOCAL_SRC_FILES = $(SOURCES_CXX) $(SOURCES_C) $(ASMFILES)
LOCAL_CPPFLAGS := -Wall -std=c++17 $(COREFLAGS) -DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS $(DEFINES)
LOCAL_CFLAGS := -O2 -DANDROID $(COREFLAGS) $(DEFINES)
LOCAL_LDLIBS += -lz -llog -lGLESv2 -lEGL -latomic
LOCAL_LDLIBS += -lz -landroid -lGLESv2 -lOpenSLES -lEGL -ldl -llog -latomic
LOCAL_STATIC_LIBRARIES += $(FFMPEGLIBS)
include $(BUILD_SHARED_LIBRARY)

View File

@ -2,4 +2,4 @@ NDK_TOOLCHAIN_VERSION ?= 4.8
APP_ABI := armeabi-v7a,arm64-v8a,x86
APP_STL := c++_static
APP_GNUSTL_CPP_FEATURES := exceptions
APP_PLATFORM := android-9
APP_PLATFORM := android-21