From 0146fa95efb9a0020da53ddcb26755796561673b Mon Sep 17 00:00:00 2001 From: Johann Date: Fri, 10 Jun 2016 14:59:26 -0700 Subject: Parse codec options in order of occurrence. Each time a codec is enabled or disabled with the umbrella --enable-vpN flag, set the encoder and decoder configurations as well. This was done as a post-processing step but doing that lost the order of the arguments. BUG=webm:1205 Change-Id: Ic629bfdd06acc04bc5a7227309f36bba54dad8b1 --- build/make/configure.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'build/make/configure.sh') diff --git a/build/make/configure.sh b/build/make/configure.sh index 33f658e66..ea3da9e9a 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 $* } -- cgit v1.2.3