Skip to content

Instantly share code, notes, and snippets.

@barrbrain barrbrain/build_aom.sh
Last active Jan 18, 2018

Embed
What would you like to do?
Build AOM for Android on OS X
ANDROID_SDK="$HOME/Library/Android/sdk"
ANDROID_NDK="$ANDROID_SDK/ndk-bundle"
echo 'include("'$ANDROID_NDK'/build/cmake/android.toolchain.cmake")' > android.toolchain.cmake
cat ../aom/build/cmake/toolchains/armv7-linux-gcc.cmake >> android.toolchain.cmake
export PATH="$PATH:$ANDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin"
$ANDROID_SDK/cmake/3.6.4111459/bin/cmake \
-G'Android Gradle - Ninja' \
-DANDROID_ABI=armeabi-v7a \
-DANDROID_ARM_NEON=ON \
-DANDROID_NATIVE_API_LEVEL=26 \
-DANDROID_TOOLCHAIN=gcc \
-DAOM_TARGET_CPU=armv7 \
-DAOM_TARGET_SYSTEM=Linux \
-DCMAKE_C_FLAGS="-I$ANDROID_NDK/sources/android/cpufeatures -std=c99" \
-DCMAKE_TOOLCHAIN_FILE=android.toolchain.cmake \
-DCROSS=arm-linux-androideabi- \
-DENABLE_CCACHE=1 \
"$@" ../aom
ninja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.