Skip to content

Commit

Permalink
Adding -enable-all-external and -all flags to build all supported ext…
Browse files Browse the repository at this point in the history
…enal libraries
  • Loading branch information
Javernaut committed Jul 25, 2020
1 parent 12d1a65 commit 04a6bd9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions scripts/parse-arguments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
;;
Expand Down

0 comments on commit 04a6bd9

Please sign in to comment.