Created
November 6, 2017 14:41
-
-
Save madhavanmalolan/0e035d491541f18d47c3ae2cc5f1bcf2 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
#!/bin/bash | |
NDK=/path/to/android-ndk/ | |
SYSROOT=$NDK/platforms/android-14/arch-arm/ | |
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 | |
function build_one | |
{ | |
./configure \ | |
--prefix=$PREFIX \ | |
--enable-shared \ | |
--disable-static \ | |
--disable-doc \ | |
--disable-ffmpeg \ | |
--disable-ffplay \ | |
--disable-ffprobe \ | |
--disable-ffserver \ | |
--disable-doc \ | |
--disable-symver \ | |
--enable-protocol=concat \ | |
--enable-protocol=file \ | |
--enable-muxer=mp4 \ | |
--enable-demuxer=mpegts \ | |
--enable-memalign-hack \ | |
--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 -j3 | |
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