mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
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
This commit is contained in:
1 parent
122dcdcb31
commit
36e2dea032
1 file changed
+9
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user