summaryrefslogtreecommitdiff
path: root/jni
diff options
context:
space:
mode:
authortwinaphex2014-12-10 04:54:32 +0100
committertwinaphex2014-12-10 04:54:32 +0100
commit68efde5b943deff0511a6ce503a7b5b8fd4e385f (patch)
tree51c34976f821dc60e211f1409abb4d4b61b3b446 /jni
parentce374b460b0ad8d2b6234888781dd64c93ddc8d4 (diff)
downloadpicogpsp-68efde5b943deff0511a6ce503a7b5b8fd4e385f.tar.gz
picogpsp-68efde5b943deff0511a6ce503a7b5b8fd4e385f.tar.bz2
picogpsp-68efde5b943deff0511a6ce503a7b5b8fd4e385f.zip
Add Android JNI files
Diffstat (limited to 'jni')
-rw-r--r--jni/Android.mk29
-rw-r--r--jni/Application.mk1
2 files changed, 30 insertions, 0 deletions
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