-
Notifications
You must be signed in to change notification settings - Fork 0
BuildAndroid
staticlibs edited this page Jan 5, 2021
·
6 revisions
On Ubuntu Bionic 18.04 x86_64 (should work on other Linux x86_64 in a similar way):
Install dependencies:
apt install cmake make openjdk-8-jdk-headless pkg-config zip
Get Android tools and setup environment var:
git clone --recursive https://github.com/wiltonruntime/android-tools-ci-repo.git andoid-tools
export WILTON_ANDROID_TOOLS=path/to/android-tools
Setup Java:
export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
Build:
cd wilton
mkdir build
cd build
cmake .. -DSTATICLIB_TOOLCHAIN=android_armeabi_gcc
make android_apk
Resulting APK can be tested in VirtualBox using Android x86 image with native bridge enabled.