From 04a6bd99e35ef2d762bc7b0458eb6022b32581d3 Mon Sep 17 00:00:00 2001 From: Javernaut Date: Sat, 25 Jul 2020 19:05:53 +0300 Subject: [PATCH] Adding -enable-all-external and -all flags to build all supported extenal libraries --- .travis.yml | 2 +- scripts/parse-arguments.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 709c7a0..cbcfcc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,4 +17,4 @@ install: - 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 - sudo dpkg -i $HOME/nasm_2.14.02-1_amd64.deb script: - - ./ffmpeg-android-maker.sh -vpx -dav1d -mp3lame -aom -opus -wavpack -twolame -speex -android=18 + - ./ffmpeg-android-maker.sh -all -android=18 diff --git a/scripts/parse-arguments.sh b/scripts/parse-arguments.sh index 3b338b2..0404bef 100755 --- a/scripts/parse-arguments.sh +++ b/scripts/parse-arguments.sh @@ -13,6 +13,17 @@ SOURCE_VALUE=4.3.1 BINUTILS=gnu EXTERNAL_LIBRARIES=() +ALL_SUPPORTED_LIBRARIES=( + "libaom" + "libdav1d" + "libmp3lame" + "libopus" + "libwavpack" + "libtwolame" + "libspeex" + "libvpx" +) + for argument in "$@"; do case $argument in # Build for only specified ABIs (separated by comma) @@ -91,6 +102,9 @@ for argument in "$@"; do --enable-libvpx|-vpx) EXTERNAL_LIBRARIES+=( "libvpx" ) ;; + --enable-all-external|-all) + EXTERNAL_LIBRARIES=${ALL_SUPPORTED_LIBRARIES[@]} + ;; *) echo "Unknown argument $argument" ;;