Add Android (arm) build to libretro makefile

This commit is contained in:
Logan McNaughton 2016-11-15 10:51:11 -08:00
parent 94aeaaca9d
commit 7c4186220a
2 changed files with 9 additions and 0 deletions

View File

@ -180,6 +180,14 @@ else ifneq (,$(findstring armv,$(platform)))
endif endif
CXXFLAGS += -DARM CXXFLAGS += -DARM
# Android
else ifneq (,$(findstring android,$(platform)))
TARGET := $(TARGET_NAME)_libretro_android.so
SHARED := -shared -Wl,--no-undefined -march=armv7-a -Wl,--fix-cortex-a8
fpic := -fPIC
CXXFLAGS += -marm -march=armv7-a -mfloat-abi=softfp -mfpu=neon -DANDROID -DARM
HAVE_NEON = 1
# Windows # Windows
else else
TARGET := $(TARGET_NAME)_libretro.dll TARGET := $(TARGET_NAME)_libretro.dll

View File

@ -37,6 +37,7 @@ SOURCES_CXX := $(CORE_DIR)/apu/apu.cpp \
$(CORE_DIR)/stream.cpp \ $(CORE_DIR)/stream.cpp \
$(CORE_DIR)/sa1.cpp \ $(CORE_DIR)/sa1.cpp \
$(CORE_DIR)/sa1cpu.cpp \ $(CORE_DIR)/sa1cpu.cpp \
$(CORE_DIR)/screenshot.cpp \
$(CORE_DIR)/sdd1.cpp \ $(CORE_DIR)/sdd1.cpp \
$(CORE_DIR)/sdd1emu.cpp \ $(CORE_DIR)/sdd1emu.cpp \
$(CORE_DIR)/seta.cpp \ $(CORE_DIR)/seta.cpp \