Created
May 26, 2018 12:46
-
-
Save lecion/f2c92958fae5efaf98d370d49c356356 to your computer and use it in GitHub Desktop.
The build script of X264 for Android. Use NDK lower than r13b.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ADDI_CFLAGS="-marm" | |
| API=16 | |
| PLATFORM=arm-linux-androideabi | |
| CPU=armv7-a | |
| NDK=/Users/lecion/Dev/Android/android-ndk-r13b | |
| SYSROOT=$NDK/platforms/android-$API/arch-arm/ | |
| ISYSROOT=$NDK/sysroot | |
| ASM=$ISYSROOT/usr/include/$PLATFORM | |
| TOOLCHAIN=$NDK/toolchains/$PLATFORM-4.9/prebuilt/darwin-x86_64 | |
| OUTPUT=./build | |
| function build_one | |
| { | |
| ./configure \ | |
| --prefix=$OUTPUT \ | |
| --enable-shared \ | |
| --enable-pic \ | |
| --disable-asm \ | |
| --disable-cli \ | |
| --host=arm-linux \ | |
| --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ | |
| --sysroot=$SYSROOT | |
| make -j8 | |
| make install | |
| make clean | |
| } | |
| build_one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment