op .so file size
This commit is contained in:
parent
f8fec9b5f0
commit
f545d654dc
7
android/jni/Application.mk
Normal file
7
android/jni/Application.mk
Normal file
@ -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
|
@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"submodule": "git submodule update --init --recursive",
|
"submodule": "git submodule update --init --recursive",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user