diff --git a/android/jni/Application.mk b/android/jni/Application.mk new file mode 100644 index 0000000..f28e446 --- /dev/null +++ b/android/jni/Application.mk @@ -0,0 +1,7 @@ +APP_PLATFORM := android-14 +APP_CFLAGS += -Wno-error=format-security +APP_CFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden +APP_CFLAGS += -ffunction-sections -fdata-sections +APP_LDFLAGS += -Wl,--gc-sections +APP_BUILD_SCRIPT := Android.mk +APP_ABI := armeabi-v7a arm64-v8a x86 x86_64 diff --git a/package.json b/package.json index 807d34f..b7aa063 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "submodule": "git submodule update --init --recursive", "test": "echo \"Error: no test specified\" && exit 1", - "build-lib": "yarn submodule && $ANDROID_HOME/ndk/20.1.5948944/ndk-build NDK_PROJECT_PATH=android APP_BUILD_SCRIPT=android/jni/Android.mk NDK_LIBS_OUT=android/lib" + "build-lib": "yarn submodule && $ANDROID_HOME/ndk/20.1.5948944/ndk-build NDK_PROJECT_PATH=android APP_BUILD_SCRIPT=android/jni/Android.mk NDK_APPLICATION_MK=Application.mk NDK_LIBS_OUT=android/lib" }, "repository": { "type": "git",