Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit734a4e9

Browse files
committed
Customizing build scripts for WhatTheCodec app
1 parent7406393 commit734a4e9

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
22

33
case$ANDROID_ABIin
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‎

Lines changed: 1 addition & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp