diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-03-20 12:00:58 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-04-19 14:34:07 +0300 |
commit | 06edef3d5e072ef3c4face9ce946d2d9c36cc477 (patch) | |
tree | 00ca9d805e3eeb8a36a7467199b2a53480d6753f /configure | |
parent | a0f469da744db83db32f3fe13186ee4aa2bc7dc5 (diff) |
Generate the lists of enabled protocols/bsfs from configure.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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(){ |