summaryrefslogtreecommitdiff
path: root/current/sources/android/native_app_glue/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'current/sources/android/native_app_glue/Android.mk')
-rw-r--r--current/sources/android/native_app_glue/Android.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/current/sources/android/native_app_glue/Android.mk b/current/sources/android/native_app_glue/Android.mk
new file mode 100644
index 000000000..a41b80f38
--- /dev/null
+++ b/current/sources/android/native_app_glue/Android.mk
@@ -0,0 +1,16 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE:= android_native_app_glue
+LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0
+LOCAL_LICENSE_CONDITIONS:= notice
+LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/NOTICE
+LOCAL_SRC_FILES:= android_native_app_glue.c
+LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
+LOCAL_EXPORT_LDLIBS := -llog -landroid
+# The linker will strip this as "unused" since this is a static library, but we
+# need to keep it around since it's the interface for JNI.
+LOCAL_EXPORT_LDFLAGS := -u ANativeActivity_onCreate
+
+include $(BUILD_STATIC_LIBRARY)