File tree 3 files changed +21
-1
lines changed
3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ install:
17
17
- 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
18
18
- sudo dpkg -i $HOME/nasm_2.14.02-1_amd64.deb
19
19
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
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
case $ANDROID_ABI in
4
+ armeabi-v7a)
5
+ EXTRA_BUILD_CONFIGURATION_FLAGS=--enable-thumb
6
+ ;;
4
7
x86)
5
8
# Disabling assembler optimizations, because they have text relocations
6
9
EXTRA_BUILD_CONFIGURATION_FLAGS=--disable-asm
21
24
DEP_CFLAGS=" -I${BUILD_DIR_EXTERNAL} /${ANDROID_ABI} /include"
22
25
DEP_LD_FLAGS=" -L${BUILD_DIR_EXTERNAL} /${ANDROID_ABI} /lib $FFMPEG_EXTRA_LD_FLAGS "
23
26
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
+
24
30
./configure \
25
31
--prefix=${BUILD_DIR_FFMPEG} /${ANDROID_ABI} \
26
32
--enable-cross-compile \
@@ -35,6 +41,19 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
35
41
--disable-static \
36
42
--pkg-config=$( which pkg-config) \
37
43
${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 \
38
57
$ADDITIONAL_COMPONENTS
39
58
40
59
${MAKE_EXECUTABLE} clean
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ ${CMAKE_EXECUTABLE} .. \
12
12
-DCMAKE_TOOLCHAIN_FILE=${SCRIPTS_DIR} /libaom/android.cmake \
13
13
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
14
14
-DCONFIG_PIC=1 \
15
+ -DCONFIG_AV1_ENCODER=0 \
15
16
-DCONFIG_RUNTIME_CPU_DETECT=0 \
16
17
-DENABLE_TESTS=0 \
17
18
-DENABLE_DOCS=0 \
You can’t perform that action at this time.
0 commit comments