Add Android JNI files

This commit is contained in:
twinaphex 2014-12-10 04:54:32 +01:00
parent ce374b460b
commit 68efde5b94
2 changed files with 30 additions and 0 deletions

29
jni/Android.mk Normal file
View File

@ -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)

1
jni/Application.mk Normal file
View File

@ -0,0 +1 @@
APP_ABI := armeabi armeabi-v7a