Commit 0b28039a authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit 'd7a5a178'

* commit 'd7a5a178':
  configure: When disabling a library disable all the related components
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents a71fff21 d7a5a178
...@@ -1332,20 +1332,39 @@ cp_if_changed(){ ...@@ -1332,20 +1332,39 @@ cp_if_changed(){
# CONFIG_LIST contains configurable options, while HAVE_LIST is for # CONFIG_LIST contains configurable options, while HAVE_LIST is for
# system-dependent things. # system-dependent things.
COMPONENT_LIST=" AVCODEC_COMPONENTS="
bsfs bsfs
decoders decoders
demuxers
encoders encoders
filters
hwaccels hwaccels
parsers
"
AVDEVICE_COMPONENTS="
indevs indevs
muxers
outdevs outdevs
parsers "
AVFILTER_COMPONENTS="
filters
"
AVFORMAT_COMPONENTS="
demuxers
muxers
protocols protocols
" "
AVRESAMPLE_COMPONENTS=""
AVUTIL_COMPONENTS=""
COMPONENT_LIST="
$AVCODEC_COMPONENTS
$AVDEVICE_COMPONENTS
$AVFILTER_COMPONENTS
$AVFORMAT_COMPONENTS
$AVRESAMPLE_COMPONENTS
$AVUTIL_COMPONENTS
"
EXAMPLE_LIST=" EXAMPLE_LIST="
avio_reading_example avio_reading_example
avio_dir_cmd_example avio_dir_cmd_example
...@@ -3176,6 +3195,18 @@ done ...@@ -3176,6 +3195,18 @@ done
disabled logging && logfile=/dev/null disabled logging && logfile=/dev/null
# Disable all the library-specific components if the library itself
# is disabled, see AVCODEC_LIST and following _LIST variables.
disable_components(){
disabled ${1} && disable $(
eval components="\$$(toupper ${1})_COMPONENTS"
map 'eval echo \${$(toupper ${v%s})_LIST}' $components
)
}
map 'disable_components $v' $LIBRARY_LIST
echo "# $0 $FFMPEG_CONFIGURATION" > $logfile echo "# $0 $FFMPEG_CONFIGURATION" > $logfile
set >> $logfile set >> $logfile
......
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