Skip to content

Commit 734a4e9

Browse files
committed
Customizing build scripts for WhatTheCodec app
1 parent 7406393 commit 734a4e9

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ install:
1717
- curl http://archive.ubuntu.com/ubuntu/pool/universe/n/nasm/nasm_2.14.02-1_amd64.deb --output $HOME/nasm_2.14.02-1_amd64.deb
1818
- sudo dpkg -i $HOME/nasm_2.14.02-1_amd64.deb
1919
script:
20-
- bash -e ffmpeg-android-maker.sh --enable-libdav1d --enable-libmp3lame --enable-libaom --android-api-level=18
20+
- bash -e ffmpeg-android-maker.sh --enable-libdav1d --enable-libmp3lame --enable-libaom

scripts/ffmpeg/build.sh

+19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
22

33
case $ANDROID_ABI in
4+
armeabi-v7a)
5+
EXTRA_BUILD_CONFIGURATION_FLAGS=--enable-thumb
6+
;;
47
x86)
58
# Disabling assembler optimizations, because they have text relocations
69
EXTRA_BUILD_CONFIGURATION_FLAGS=--disable-asm
@@ -21,6 +24,9 @@ done
2124
DEP_CFLAGS="-I${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/include"
2225
DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
2326

27+
# Everything that goes below ${EXTRA_BUILD_CONFIGURATION_FLAGS} is my project-specific.
28+
# You are free to enable/disable whatever you actually need.
29+
2430
./configure \
2531
--prefix=${BUILD_DIR_FFMPEG}/${ANDROID_ABI} \
2632
--enable-cross-compile \
@@ -35,6 +41,19 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
3541
--disable-static \
3642
--pkg-config=$(which pkg-config) \
3743
${EXTRA_BUILD_CONFIGURATION_FLAGS} \
44+
--disable-runtime-cpudetect \
45+
--disable-programs \
46+
--disable-muxers \
47+
--disable-encoders \
48+
--disable-avdevice \
49+
--disable-postproc \
50+
--disable-swresample \
51+
--disable-avfilter \
52+
--disable-doc \
53+
--disable-debug \
54+
--disable-pthreads \
55+
--disable-network \
56+
--disable-bsfs \
3857
$ADDITIONAL_COMPONENTS
3958

4059
${MAKE_EXECUTABLE} clean

scripts/libaom/build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ${CMAKE_EXECUTABLE} .. \
1212
-DCMAKE_TOOLCHAIN_FILE=${SCRIPTS_DIR}/libaom/android.cmake \
1313
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
1414
-DCONFIG_PIC=1 \
15+
-DCONFIG_AV1_ENCODER=0 \
1516
-DCONFIG_RUNTIME_CPU_DETECT=0 \
1617
-DENABLE_TESTS=0 \
1718
-DENABLE_DOCS=0 \

0 commit comments

Comments
 (0)