Browse code

configure: add --disable-everything option

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

Originally committed as revision 22443 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2010/03/11 09:39:02
Showing 1 changed files
... ...
@@ -312,6 +312,12 @@ filter(){
312 312
     done
313 313
 }
314 314
 
315
+map(){
316
+    m=$1
317
+    shift
318
+    for _; do; eval $m; done
319
+}
320
+
315 321
 set_all(){
316 322
     value=$1
317 323
     shift
... ...
@@ -1578,6 +1584,9 @@ for opt do
1578 1578
     ;;
1579 1579
     --enable-debug=*) debuglevel="$optval"
1580 1580
     ;;
1581
+    --disable-everything)
1582
+    map 'eval disable \${$(toupper ${_%s})_LIST}' $COMPONENT_LIST
1583
+    ;;
1581 1584
     --enable-*=*|--disable-*=*)
1582 1585
     eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
1583 1586
     is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"