Created
December 13, 2016 05:26
-
-
Save lhjnano/0ed067824f702ab20b449c777c79fe8f to your computer and use it in GitHub Desktop.
This file contains 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
NDK=$HOME/Android/Sdk/ndk-bundle | |
SYSROOT=$NDK/platforms/android-16/arch-arm/ | |
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 | |
function build_one | |
{ | |
./configure \ | |
--prefix=$PREFIX \ | |
--enable-shared \ | |
--disable-static \ | |
--disable-doc \ | |
--disable-ffmpeg \ | |
--disable-ffplay \ | |
--disable-ffprobe \ | |
--disable-ffserver \ | |
--disable-avdevice \ | |
--disable-doc \ | |
--disable-symver \ | |
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ | |
--target-os=linux \ | |
--arch=arm \ | |
--enable-cross-compile \ | |
--sysroot=$SYSROOT \ | |
--extra-cflags="-Os -fpic $ADDI_CFLAGS" \ | |
--extra-ldflags="$ADDI_LDFLAGS" \ | |
$ADDITIONAL_CONFIGURE_FLAG | |
make clean | |
make | |
make install | |
} | |
CPU=arm | |
PREFIX=$(pwd)/android/$CPU | |
ADDI_CFLAGS="-marm" | |
build_one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment