summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-03-20 10:00:58 +0100
committerAnton Khirnov <anton@khirnov.net>2016-04-19 13:34:07 +0200
commit06edef3d5e072ef3c4face9ce946d2d9c36cc477 (patch)
tree00ca9d805e3eeb8a36a7467199b2a53480d6753f /configure
parenta0f469da744db83db32f3fe13186ee4aa2bc7dc5 (diff)
Generate the lists of enabled protocols/bsfs from configure.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure b/configure
index 2eb686a591..117e286450 100755
--- a/configure
+++ b/configure
@@ -5310,6 +5310,23 @@ cp_if_changed $TMPH libavutil/avconfig.h
test -n "$WARNINGS" && printf "\n$WARNINGS"
+# generate the lists of enabled components
+print_enabled_components(){
+ file=$1
+ struct_name=$2
+ name=$3
+ shift 3
+ echo "static const $struct_name *$name[] = {" > $TMPH
+ for c in $*; do
+ enabled $c && printf " &ff_%s,\n" $c >> $TMPH
+ done
+ echo " NULL };" >> $TMPH
+ cp_if_changed $TMPH $file
+}
+
+print_enabled_components libavcodec/bsf_list.c AVBitStreamFilter bitstream_filters $BSF_LIST
+print_enabled_components libavformat/protocol_list.c URLProtocol url_protocols $PROTOCOL_LIST
+
# build pkg-config files
lib_version(){