optimize building by ndk-build

This commit is contained in:
zhengshuxin 2021-09-28 15:49:15 +08:00
parent 77aa6ef7ea
commit 667c2f27f0
15 changed files with 153 additions and 11 deletions

15
lib_acl/ndk-build-r20.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
rm -f jni
rm -rf obj
ln -s src jni
cd jni
export app_abi="armeabi-v7a x86"
export app_platform=android-16
export ndk_toolchain_version=4.6
ndk-build
#~/Library/Android/android-ndk-r9d/ndk-build
cd ..

14
lib_acl/ndk-build-r9d.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
rm -f jni
rm -rf obj
ln -s src jni
cd jni
export app_abi="armeabi armeabi-v7a x86"
export app_platform=android-14
export ndk_toolchain_version=4.6
ndk-build
#~/Library/Android/android-ndk-r9d/ndk-build
cd ..

View File

@ -3,5 +3,11 @@ rm -f jni
rm -rf obj
ln -s src jni
cd jni
export app_abi="armeabi armeabi-v7a x86"
export app_platform=android-14
export ndk_toolchain_version=4.6
~/Library/Android/android-ndk-r9d/ndk-build
cd ..

View File

@ -1,5 +1,7 @@
#APP_ABI := all
APP_ABI := armeabi armeabi-v7a x86
APP_PLATFORM := android-14
#APP_ABI := armeabi armeabi-v7a x86
#APP_PLATFORM := android-14
APP_ABI := $(app_abi)
APP_PLATFORM := $(app_platform)
APP_OPTIM := release
NDK_TOOLCHAIN_VERSION := 4.6
NDK_TOOLCHAIN_VERSION := $(ndk_toolchain_version)

View File

@ -7,6 +7,7 @@
#pragma hdrstop
#endif
#include "stdlib/acl_msg.h"
#include "stdlib/acl_allocator.h"
#endif

15
lib_acl_cpp/ndk-build-r20.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
rm -f jni
rm -rf obj
ln -s src jni
cd jni
export app_abi="armeabi-v7a x86"
export app_platform=android-16
export ndk_toolchain_version=4.6
export app_stl=c++_static
ndk-build
#~/Library/Android/android-ndk-r9d/ndk-build
cd ..

15
lib_acl_cpp/ndk-build-r9d.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
rm -f jni
rm -rf obj
ln -s src jni
cd jni
export app_abi="armeabi armeabi-v7a x86"
export app_platform=android-14
export ndk_toolchain_version=4.6
export app_stl=gnustl_static
ndk-build
#~/Library/Android/android-ndk-r9d/ndk-build
cd ..

View File

@ -3,5 +3,12 @@ rm -f jni
rm -rf obj
ln -s src jni
cd jni
export app_abi="armeabi armeabi-v7a x86"
export app_platform=android-14
export ndk_toolchain_version=4.6
export app_stl=gnustl_static
~/Library/Android/android-ndk-r9d/ndk-build
cd ..

View File

@ -1,6 +1,8 @@
#APP_ABI := all
APP_ABI := armeabi armeabi-v7a x86
APP_PLATFORM := android-14
APP_STL := gnustl_static
#APP_ABI := armeabi armeabi-v7a x86
#APP_PLATFORM := android-14
APP_ABI := $(app_abi)
APP_PLATFORM := $(app_platform)
APP_STL := $(app_stl)
APP_OPTIM := release
NDK_TOOLCHAIN_VERSION := 4.6
NDK_TOOLCHAIN_VERSION := $(ndk_toolchain_version)

18
lib_protocol/ndk-build-r20.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
rm -f jni
rm -rf obj
ln -s src jni
cd jni
export app_abi="armeabi-v7a x86"
export app_platform=android-16
export ndk_toolchain_version=4.6
ndk-build
#export app_abi=x86
#ndk-build
#~/Library/Android/android-ndk-r9d/ndk-build
cd ..

14
lib_protocol/ndk-build-r9d.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
rm -f jni
rm -rf obj
ln -s src jni
cd jni
export app_abi="armeabi armeabi-v7a x86"
export app_platform=android-14
export ndk_toolchain_version=4.6
ndk-build
#~/Library/Android/android-ndk-r9d/ndk-build
cd ..

View File

@ -3,5 +3,11 @@ rm -f jni
rm -rf obj
ln -s src jni
cd jni
export app_abi="armeabi armeabi-v7a x86"
export app_platform=android-14
export ndk_toolchain_version=4.6
~/Library/Android/android-ndk-r9d/ndk-build
cd ..

View File

@ -1,6 +1,7 @@
#APP_ABI := all
APP_ABI := armeabi armeabi-v7a x86
APP_PLATFORM := android-14
#APP_ABI := armeabi armeabi-v7a x86
#APP_PLATFORM := android-14
APP_ABI := $(app_abi)
APP_PLATFORM := $(app_platform)
APP_OPTIM := release
#APP_STL := gnustl_static
NDK_TOOLCHAIN_VERSION := 4.6
NDK_TOOLCHAIN_VERSION := $(ndk_toolchain_version)

13
ndk-build-r20.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
cd lib_acl/
./ndk-build-r20.sh
cd ..
cd lib_protocol/
./ndk-build-r20.sh
cd ..
cd lib_acl_cpp/
./ndk-build-r20.sh
cd ..

13
ndk-build-r9d.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
cd lib_acl/
./ndk-build-r9d.sh
cd ..
cd lib_protocol/
./ndk-build-r9d.sh
cd ..
cd lib_acl_cpp/
./ndk-build-r9d.sh
cd ..