1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

op .so file size

This commit is contained in:
sisong 2021-04-09 20:21:24 +08:00
parent f8fec9b5f0
commit f545d654dc
2 changed files with 8 additions and 1 deletions

View 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

View File

@ -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",