diff options
author | Andrés | 2018-03-31 17:42:03 -0500 |
---|---|---|
committer | GitHub | 2018-03-31 17:42:03 -0500 |
commit | 63a21c71e6ecb0e98ec6b657b7bbb39561ce6dc8 (patch) | |
tree | 3f1f7f48b1784a446f2429e71eda606788a90129 /jni | |
parent | 638aad3ad5e724bb43294b255a292aa2ff83009f (diff) | |
parent | 4b0914b103924545dd70033c57876a168aa5cf37 (diff) | |
download | picogpsp-63a21c71e6ecb0e98ec6b657b7bbb39561ce6dc8.tar.gz picogpsp-63a21c71e6ecb0e98ec6b657b7bbb39561ce6dc8.tar.bz2 picogpsp-63a21c71e6ecb0e98ec6b657b7bbb39561ce6dc8.zip |
Merge pull request #45 from webgeek1234/master
Fix up android jni makefiles
Diffstat (limited to 'jni')
-rw-r--r-- | jni/Android.mk | 52 | ||||
-rw-r--r-- | jni/Application.mk | 3 |
2 files changed, 26 insertions, 29 deletions
diff --git a/jni/Android.mk b/jni/Android.mk index 05a96c9..3fec1dc 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -1,48 +1,44 @@ LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) +CORE_CFLAGS := +CORE_LDLIBS := +CPU_ARCH := +HAVE_DYNAREC := +SOURCES_C := +SOURCES_ASM := + +CORE_DIR := .. GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" ifneq ($(GIT_VERSION)," unknown") - LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" + CORE_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" endif -LOCAL_MODULE := retro -CPU_ARCH := - ifeq ($(TARGET_ARCH),arm) -LOCAL_CFLAGS += -DANDROID_ARM -DARM_ARCH -DARM_MEMORY_DYNAREC -LOCAL_ARM_MODE := arm -CPU_ARCH := arm -HAVE_DYNAREC := 1 + CORE_CFLAGS += -DARM_ARCH -DARM_MEMORY_DYNAREC + CPU_ARCH := arm + HAVE_DYNAREC := 1 endif ifeq ($(TARGET_ARCH),x86) -LOCAL_CFLAGS += -DANDROID_X86 -DHAVE_MMAP -CPU_ARCH := x86_32 -HAVE_DYNAREC := 1 + CORE_CFLAGS += -DHAVE_MMAP + CPU_ARCH := x86_32 + HAVE_DYNAREC := 1 endif -#ifeq ($(TARGET_ARCH),mips) -#LOCAL_CFLAGS += -DANDROID_MIPS -D__mips__ -D__MIPSEL__ -#endif - -CORE_DIR := .. - -SOURCES_C := -SOURCES_ASM := - ifeq ($(HAVE_DYNAREC),1) -LOCAL_CFLAGS += -DHAVE_DYNAREC -endif - -ifeq ($(CPU_ARCH),arm) -LOCAL_CFLAGS += -DARM_ARCH + CORE_CFLAGS += -DHAVE_DYNAREC + CORE_LDLIBS += -Wl,--no-warn-shared-textrel endif include $(CORE_DIR)/Makefile.common -LOCAL_SRC_FILES := $(SOURCES_C) $(SOURCES_ASM) -LOCAL_CFLAGS += -O2 -DNDEBUG -DINLINE=inline -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 $(INCFLAGS) +CORE_CFLAGS += -DINLINE=inline -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 $(INCFLAGS) +include $(CLEAR_VARS) +LOCAL_MODULE := retro +LOCAL_SRC_FILES := $(SOURCES_C) $(SOURCES_ASM) +LOCAL_CFLAGS := $(CORE_CFLAGS) +LOCAL_LDLIBS := $(CORE_LDLIBS) +LOCAL_ARM_MODE := arm include $(BUILD_SHARED_LIBRARY) diff --git a/jni/Application.mk b/jni/Application.mk index 7866257..085a416 100644 --- a/jni/Application.mk +++ b/jni/Application.mk @@ -1 +1,2 @@ -APP_ABI := armeabi armeabi-v7a x86 +NDK_TOOLCHAIN_VERSION := 4.9 +APP_ABI := armeabi armeabi-v7a arm64-v8a x86 |