summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-10-10 09:37:51 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2015-10-10 09:37:51 +0200
commit0b28039a44b33753d77116691d680bd60f3bac1f (patch)
treeea0d904e6e5b0719146ad8edf2448fd03ee40571 /configure
parenta71fff213d5610abea25548f7c44e490a661eb45 (diff)
parentd7a5a178c252b625537adc046392624ad543dea7 (diff)
Merge commit 'd7a5a178c252b625537adc046392624ad543dea7'
* commit 'd7a5a178c252b625537adc046392624ad543dea7': configure: When disabling a library disable all the related components Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure41
1 files changed, 36 insertions, 5 deletions
diff --git a/configure b/configure
index dba7d4678f..3d9803ae4e 100755
--- a/configure
+++ b/configure
@@ -1332,20 +1332,39 @@ cp_if_changed(){
# CONFIG_LIST contains configurable options, while HAVE_LIST is for
# system-dependent things.
-COMPONENT_LIST="
+AVCODEC_COMPONENTS="
bsfs
decoders
- demuxers
encoders
- filters
hwaccels
+ parsers
+"
+
+AVDEVICE_COMPONENTS="
indevs
- muxers
outdevs
- parsers
+"
+AVFILTER_COMPONENTS="
+ filters
+"
+AVFORMAT_COMPONENTS="
+ demuxers
+ muxers
protocols
"
+AVRESAMPLE_COMPONENTS=""
+AVUTIL_COMPONENTS=""
+
+COMPONENT_LIST="
+ $AVCODEC_COMPONENTS
+ $AVDEVICE_COMPONENTS
+ $AVFILTER_COMPONENTS
+ $AVFORMAT_COMPONENTS
+ $AVRESAMPLE_COMPONENTS
+ $AVUTIL_COMPONENTS
+"
+
EXAMPLE_LIST="
avio_reading_example
avio_dir_cmd_example
@@ -3176,6 +3195,18 @@ done
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
set >> $logfile