summaryrefslogtreecommitdiff
path: root/jni/compat.mk
diff options
context:
space:
mode:
Diffstat (limited to 'jni/compat.mk')
-rw-r--r--jni/compat.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/jni/compat.mk b/jni/compat.mk
new file mode 100644
index 0000000..83f520d
--- /dev/null
+++ b/jni/compat.mk
@@ -0,0 +1,16 @@
+include $(CLEAR_VARS)
+LOCAL_C_INCLUDES := jni/compat
+LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
+LOCAL_MODULE := compat
+LOCAL_SRC_FILES := jni/compat/compat.c
+LOCAL_LDLIBS := -llog
+include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_C_INCLUDES := jni/compat
+LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
+LOCAL_MODULE := compat-physfs
+LOCAL_SRC_FILES := jni/compat/compat-physfs.c
+LOCAL_STATIC_LIBRARIES := physfs
+LOCAL_CFLAGS := -D_BSD_SOURCE
+include $(BUILD_SHARED_LIBRARY)