https://github.com/takezoh/UniRapidJson
如何编译安卓
cd ~/UniRapidJson/build/android
make
生成的so可以在
/Users/jiacanli/UniRapidJson/build/android/build/intermediates/bundles/release/jni
下面找到
如果需要编译64位的so需要修改Application.mk,加上arm64-v8a
# APP_STL := c++_static
APP_STL := gnustl_static
ifeq ($(RUNTIME_SUPPORT), unity)
APP_ABI := armeabi-v7a arm64-v8a x86
else
APP_ABI := all
endif
需要设置NDK的路径注册到~/.bash_profile
export ANDROID_HOME=/Users/jiacanli/Library/Android/sdk
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
PATH=${PATH}:${ANDROID_HOME}/platform-tools
PATH=${PATH}:/Users/jiacanli/android-ndk-r13b
export PATH