今天又来搭建jni框架了,之前的那几个命令忘了。为了以后使用的需要,现在记录一下;
首先ndk环境ok;
cd 进入src目录下
返回上一个目录
cd ..
编译java文件
生成本地函数头文件
over!!!!
APP_ABI
By default, the NDK build system generates machine code for the armeabi ABI. This machine code corresponds to an ARMv5TE-based CPU with software floating point operations. You can use APP_ABI to select a different ABI. Table 1 shows the APP_ABI settings for different instruction sets.
Table 1. APP_ABI settings for different instruction sets.
Instruction set Value
Hardware FPU instructions on ARMv7 based devices APP_ABI := armeabi-v7a
ARMv8 AArch64 APP_ABI := arm64-v8a
IA-32 APP_ABI := x86
Intel64 APP_ABI := x86_64
MIPS32 APP_ABI := mips
MIPS64 (r6) APP_ABI := mips64
All supported instruction sets APP_ABI := all
Note: all is available starting from NDKr7.
You can also specify multiple values by placing them on the same line, delimited by spaces. For example:
APP_ABI := armeabi armeabi-v7a x86 mips