To execute the build in a Windows environment, execute the following command:
cd C:\Code\jna
set JAVA_HOME=C:\Tools\jdk
set ANT_HOME=C:\Tools\ant
set CYGWIN_HOME=C:\Tools\cygwin64
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%CYGWIN_HOME%\bin;%PATH%
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\" x64
ant
To execute the build in a Linux environment, execute the following command:cd /path/to/jna_code
export JAVA_HOME=/path/to/jdk
export ANT_HOME=/path/to/ant
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
ant
To execute the build in a Linux environment, execute the following command:
cd /path/to/jna_code
export JAVA_HOME=/path/to/jdk
export ANT_HOME=/path/to/ant
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
export NDK_PLATFORM=/path/to/android-ndk-r12b/platforms/android-21
export PATH=$NDK_PLATFORM/../../toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/:$PATH
ant -=android-aarch64