configure: simplify $COMPONENT_LIST handling
This lets check_deps set the generic CONFIG_ENCODERS and friends using an _if_any construct. Originally committed as revision 22911 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0afab17ef9
commit
8469ae22a8
30
configure
vendored
30
configure
vendored
@ -1550,18 +1550,13 @@ INDEV_LIST=$(find_things indev _IN libavdevice/alldevices.c)
|
|||||||
PROTOCOL_LIST=$(find_things protocol PROTOCOL libavformat/allformats.c)
|
PROTOCOL_LIST=$(find_things protocol PROTOCOL libavformat/allformats.c)
|
||||||
FILTER_LIST=$(find_things filter FILTER libavfilter/allfilters.c)
|
FILTER_LIST=$(find_things filter FILTER libavfilter/allfilters.c)
|
||||||
|
|
||||||
enable $ARCH_EXT_LIST \
|
for n in $COMPONENT_LIST; do
|
||||||
$DECODER_LIST \
|
v=$(toupper ${n%s})_LIST
|
||||||
$ENCODER_LIST \
|
eval enable \$$v
|
||||||
$HWACCEL_LIST \
|
eval ${n}_if_any="\$$v"
|
||||||
$PARSER_LIST \
|
done
|
||||||
$BSF_LIST \
|
|
||||||
$DEMUXER_LIST \
|
enable $ARCH_EXT_LIST
|
||||||
$MUXER_LIST \
|
|
||||||
$FILTER_LIST \
|
|
||||||
$PROTOCOL_LIST \
|
|
||||||
$INDEV_LIST \
|
|
||||||
$OUTDEV_LIST \
|
|
||||||
|
|
||||||
die_unknown(){
|
die_unknown(){
|
||||||
echo "Unknown option \"$1\"."
|
echo "Unknown option \"$1\"."
|
||||||
@ -2788,17 +2783,6 @@ fi
|
|||||||
# Find out if the .align argument is a power of two or not.
|
# Find out if the .align argument is a power of two or not.
|
||||||
check_asm asmalign_pot '".align 3"'
|
check_asm asmalign_pot '".align 3"'
|
||||||
|
|
||||||
enabled_any $DECODER_LIST && enable decoders
|
|
||||||
enabled_any $ENCODER_LIST && enable encoders
|
|
||||||
enabled_any $HWACCEL_LIST && enable hwaccels
|
|
||||||
enabled_any $BSF_LIST && enable bsfs
|
|
||||||
enabled_any $DEMUXER_LIST && enable demuxers
|
|
||||||
enabled_any $MUXER_LIST && enable muxers
|
|
||||||
enabled_any $FILTER_LIST && enable filters
|
|
||||||
enabled_any $INDEV_LIST && enable indevs
|
|
||||||
enabled_any $OUTDEV_LIST && enable outdevs
|
|
||||||
enabled_any $PROTOCOL_LIST && enable protocols
|
|
||||||
|
|
||||||
enabled_any $THREADS_LIST && enable threads
|
enabled_any $THREADS_LIST && enable threads
|
||||||
|
|
||||||
check_deps $CONFIG_LIST \
|
check_deps $CONFIG_LIST \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user