Commit 3b5b3e8f authored by mru's avatar mru

configure: add --disable-everything option

This disables all codecs, formats, etc.  It saves some typing when
only a few components are desired.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22443 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0cf51bd8
...@@ -312,6 +312,12 @@ filter(){ ...@@ -312,6 +312,12 @@ filter(){
done done
} }
map(){
m=$1
shift
for _; do; eval $m; done
}
set_all(){ set_all(){
value=$1 value=$1
shift shift
...@@ -1578,6 +1584,9 @@ for opt do ...@@ -1578,6 +1584,9 @@ for opt do
;; ;;
--enable-debug=*) debuglevel="$optval" --enable-debug=*) debuglevel="$optval"
;; ;;
--disable-everything)
map 'eval disable \${$(toupper ${_%s})_LIST}' $COMPONENT_LIST
;;
--enable-*=*|--disable-*=*) --enable-*=*|--disable-*=*)
eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/') eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt" is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment