📝How-to: build native app for Android

tags

#how-to

source

https://developer.android.com/ndk/guides/cmake

# Path to Android NDK
export NDK="$HOME/Android/Sdk/ndk/21.3.6528147/"
cmake .. \
  -DCMAKE_TOOLCHAIN_FILE="$NDK/build/cmake/android.toolchain.cmake" \
  -DANDROID_ABI=arm64-v8a \
  -DANDROID_NATIVE_API_LEVEL=28