diff options
author | DO NOT USE <johann.koenig@gmail.com> | 2016-06-17 22:03:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-06-17 22:03:50 +0000 |
commit | 4f367f5cd9e87dacf7d5bf859c1e02830e25b03c (patch) | |
tree | 3c006e2967fb10252d8866309114c9144090dcd8 /build/make/configure.sh | |
parent | 9d7a12a0e78909343f7e7a18bcbb87edff131313 (diff) | |
parent | 0146fa95efb9a0020da53ddcb26755796561673b (diff) | |
download | libvpx-4f367f5cd9e87dacf7d5bf859c1e02830e25b03c.tar libvpx-4f367f5cd9e87dacf7d5bf859c1e02830e25b03c.tar.gz libvpx-4f367f5cd9e87dacf7d5bf859c1e02830e25b03c.tar.bz2 libvpx-4f367f5cd9e87dacf7d5bf859c1e02830e25b03c.zip |
Merge "Parse codec options in order of occurrence."
Diffstat (limited to 'build/make/configure.sh')
-rw-r--r-- | build/make/configure.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh index 42616655a..89c32b0f9 100644 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -185,6 +185,25 @@ add_extralibs() { # # Boolean Manipulation Functions # + +enable_codec(){ + enabled $1 || echo " enabling $1" + set_all yes $1 + + is_in $1 vp8 vp9 vp10 && \ + set_all yes $1_encoder && \ + set_all yes $1_decoder +} + +disable_codec(){ + disabled $1 || echo " disabling $1" + set_all no $1 + + is_in $1 vp8 vp9 vp10 && \ + set_all no $1_encoder && \ + set_all no $1_decoder +} + enable_feature(){ set_all yes $* } |