ref: 57adf3d57347e3d9f3cf8f9469228cf862a8b1f2
parent: 692fe74debda99307db9c64fe7d9a4ea2cf7f95c
parent: 74a61b5ab9167f26fe21d3f328636309985d098e
author: Johann Koenig <[email protected]>
date: Thu Jun 23 18:59:21 EDT 2016
Merge "configure: clean up var style and set_all usage"
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -186,24 +186,6 @@
# Boolean Manipulation Functions
#
-enable_codec(){
- enabled $1 || echo " enabling $1"
- set_all yes $1
-
- is_in $1 vp8 vp9 && \
- 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 && \
- set_all no $1_encoder && \
- set_all no $1_decoder
-}
-
enable_feature(){
set_all yes $*
}
@@ -218,6 +200,20 @@
disabled(){
eval test "x\$$1" = "xno"
+}
+
+enable_codec(){
+ enabled "${1}" || echo " enabling ${1}"
+ enable_feature "${1}"
+
+ is_in "${1}" vp8 vp9 && enable_feature "${1}_encoder" "${1}_decoder"
+}
+
+disable_codec(){
+ disabled "${1}" || echo " disabling ${1}"
+ disable_feature "${1}"
+
+ is_in "${1}" vp8 vp9 && disable_feature "${1}_encoder" "${1}_decoder"
}
# Iterates through positional parameters, checks to confirm the parameter has