diff options
author | Måns Rullgård <mans@mansr.com> | 2010-03-11 00:39:02 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-03-11 00:39:02 +0000 |
commit | 36e2dea032df93c841cb7c6c8bc977d96bad33c8 (patch) | |
tree | ef07e94048aee608e0d31a8839fb86a7532a8dbd | |
parent | 122dcdcb31d86722916ca04099715e80a6f6bd1b (diff) | |
download | ffmpeg-36e2dea032df93c841cb7c6c8bc977d96bad33c8.tar.gz |
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
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -312,6 +312,12 @@ filter(){ done } +map(){ + m=$1 + shift + for _; do; eval $m; done +} + set_all(){ value=$1 shift @@ -1578,6 +1584,9 @@ for opt do ;; --enable-debug=*) debuglevel="$optval" ;; + --disable-everything) + map 'eval disable \${$(toupper ${_%s})_LIST}' $COMPONENT_LIST + ;; --enable-*=*|--disable-*=*) eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/') is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt" |