|
|
@ -1,6 +1,9 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
|
|
|
|
case $ANDROID_ABI in |
|
|
|
case $ANDROID_ABI in |
|
|
|
|
|
|
|
armeabi-v7a) |
|
|
|
|
|
|
|
EXTRA_BUILD_CONFIGURATION_FLAGS=--enable-thumb |
|
|
|
|
|
|
|
;; |
|
|
|
x86) |
|
|
|
x86) |
|
|
|
# Disabling assembler optimizations, because they have text relocations |
|
|
|
# Disabling assembler optimizations, because they have text relocations |
|
|
|
EXTRA_BUILD_CONFIGURATION_FLAGS=--disable-asm |
|
|
|
EXTRA_BUILD_CONFIGURATION_FLAGS=--disable-asm |
|
|
@ -25,6 +28,9 @@ done |
|
|
|
DEP_CFLAGS="-I${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/include" |
|
|
|
DEP_CFLAGS="-I${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/include" |
|
|
|
DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS" |
|
|
|
DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Everything that goes below ${EXTRA_BUILD_CONFIGURATION_FLAGS} is my project-specific. |
|
|
|
|
|
|
|
# You are free to enable/disable whatever you actually need. |
|
|
|
|
|
|
|
|
|
|
|
./configure \ |
|
|
|
./configure \ |
|
|
|
--prefix=${BUILD_DIR_FFMPEG}/${ANDROID_ABI} \ |
|
|
|
--prefix=${BUILD_DIR_FFMPEG}/${ANDROID_ABI} \ |
|
|
|
--enable-cross-compile \ |
|
|
|
--enable-cross-compile \ |
|
|
@ -45,6 +51,22 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS" |
|
|
|
--disable-static \ |
|
|
|
--disable-static \ |
|
|
|
--pkg-config=${PKG_CONFIG_EXECUTABLE} \ |
|
|
|
--pkg-config=${PKG_CONFIG_EXECUTABLE} \ |
|
|
|
${EXTRA_BUILD_CONFIGURATION_FLAGS} \ |
|
|
|
${EXTRA_BUILD_CONFIGURATION_FLAGS} \ |
|
|
|
|
|
|
|
--disable-runtime-cpudetect \ |
|
|
|
|
|
|
|
--disable-programs \ |
|
|
|
|
|
|
|
--disable-muxers \ |
|
|
|
|
|
|
|
--disable-encoders \ |
|
|
|
|
|
|
|
--disable-avdevice \ |
|
|
|
|
|
|
|
--disable-postproc \ |
|
|
|
|
|
|
|
--disable-swresample \ |
|
|
|
|
|
|
|
--disable-avfilter \ |
|
|
|
|
|
|
|
--disable-doc \ |
|
|
|
|
|
|
|
--disable-debug \ |
|
|
|
|
|
|
|
--disable-pthreads \ |
|
|
|
|
|
|
|
--disable-network \ |
|
|
|
|
|
|
|
--disable-bsfs \ |
|
|
|
|
|
|
|
--disable-protocols \ |
|
|
|
|
|
|
|
--enable-protocol=file \ |
|
|
|
|
|
|
|
--enable-protocol=pipe \ |
|
|
|
$ADDITIONAL_COMPONENTS || exit 1 |
|
|
|
$ADDITIONAL_COMPONENTS || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
${MAKE_EXECUTABLE} clean |
|
|
|
${MAKE_EXECUTABLE} clean |
|
|
|