Merge "Parse codec options in order of occurrence."

This commit is contained in:
DO NOT USE
2016-06-17 22:03:49 +00:00
committed by Gerrit Code Review
2 changed files with 28 additions and 13 deletions

View File

@@ -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 $*
}