diff options
author | aliaspider | 2015-11-07 14:18:06 +0100 |
---|---|---|
committer | aliaspider | 2015-11-07 14:18:06 +0100 |
commit | 7b820ffe978cc09a60d7e5d525aeb6691dca9b3c (patch) | |
tree | 3360c3909f0d7010eb64de6264797268a729c382 /jni | |
parent | 6891f9abfeaca7cda2471a18b859e90276f67029 (diff) | |
download | snes9x2002-7b820ffe978cc09a60d7e5d525aeb6691dca9b3c.tar.gz snes9x2002-7b820ffe978cc09a60d7e5d525aeb6691dca9b3c.tar.bz2 snes9x2002-7b820ffe978cc09a60d7e5d525aeb6691dca9b3c.zip |
add Makefile.common, update android build files
Diffstat (limited to 'jni')
-rw-r--r-- | jni/Android.mk | 33 | ||||
-rw-r--r-- | jni/Application.mk | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/jni/Android.mk b/jni/Android.mk new file mode 100644 index 0000000..cd27dbe --- /dev/null +++ b/jni/Android.mk @@ -0,0 +1,33 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := retro + +ifeq ($(TARGET_ARCH),arm) +LOCAL_CFLAGS += -DANDROID_ARM +LOCAL_ARM_MODE := arm +endif + +ifeq ($(TARGET_ARCH),x86) +LOCAL_CFLAGS += -DANDROID_X86 +endif + +ifeq ($(TARGET_ARCH),mips) +LOCAL_CFLAGS += -DANDROID_MIPS -D__mips__ -D__MIPSEL__ +endif + +ifeq ($(NDK_DEBUG),1) +DEBUG = 1 +endif + +CORE_DIR := ../src +LIBRETRO_DIR := ../libretro + +include Makefile.common + +LOCAL_SRC_FILES := $(SOURCES) +LOCAL_CFLAGS += $(DEFINES) $(COMMON_DEFINES) $(INCLUDES) +LOCAL_ASFLAGS += $(DEFINES) $(COMMON_DEFINES) $(INCLUDES) + +include $(BUILD_SHARED_LIBRARY) diff --git a/jni/Application.mk b/jni/Application.mk new file mode 100644 index 0000000..f05229c --- /dev/null +++ b/jni/Application.mk @@ -0,0 +1 @@ +APP_ABI := armeabi armeabi-v7a |