From 68efde5b943deff0511a6ce503a7b5b8fd4e385f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 10 Dec 2014 04:54:32 +0100 Subject: [PATCH] Add Android JNI files --- jni/Android.mk | 29 +++++++++++++++++++++++++++++ jni/Application.mk | 1 + 2 files changed, 30 insertions(+) create mode 100644 jni/Android.mk create mode 100644 jni/Application.mk diff --git a/jni/Android.mk b/jni/Android.mk new file mode 100644 index 0000000..50f51a5 --- /dev/null +++ b/jni/Android.mk @@ -0,0 +1,29 @@ +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 + +CORE_DIR := .. + +include $(CORE_DIR)/Makefile.common + +CPU_ARCH := arm + +LOCAL_SRC_FILES += $(SOURCES_C) $(SOURCES_ASM) +LOCAL_CFLAGS += -O2 -DARM_ARCH -DNDEBUG -DINLINE=inline -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 $(INCFLAGS) + +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