* commit '11a9320de54759340531177c9f2b1e31e6112cc2': build: Move build-system-related helper files to a separate subdirectory "ffbuild" directory name is used instead of "avbuild".
Unified · Split
| @@ -27,7 +27,8 @@ · 26 unmodified lines | ||
| 27 | 27 | /ffplay |
| 28 | 28 | /ffprobe |
| 29 | 29 | /ffserver |
| 30 | −/config.* | |
| 30 | +/config.asm | |
| 31 | +/config.h | |
| 31 | 32 | /coverage.info |
| 32 | 33 | /avversion.h |
| 33 | 34 | /lcov/ |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | MAIN_MAKEFILE=1 |
| 2 | −include config.mak | |
| 2 | +include ffbuild/config.mak | |
| 3 | 3 | |
| 4 | 4 | vpath %.c $(SRC_PATH) |
| 5 | 5 | vpath %.cpp $(SRC_PATH) |
| @@ -66,7 +66,7 @@ SKIPHEADERS = cmdutils_common_opts.h \ · 60 unmodified lines | ||
| 66 | 66 | all: all-yes |
| 67 | 67 | |
| 68 | 68 | include $(SRC_PATH)/tools/Makefile |
| 69 | −include $(SRC_PATH)/common.mak | |
| 69 | +include $(SRC_PATH)/ffbuild/common.mak | |
| 70 | 70 | |
| 71 | 71 | FF_EXTRALIBS := $(FFEXTRALIBS) |
| 72 | 72 | FF_DEP_LIBS := $(DEP_LIBS) |
| @@ -91,8 +91,8 @@ CONFIGURABLE_COMPONENTS = \ · 18 unmodified lines | ||
| 91 | 91 | $(SRC_PATH)/libavcodec/bitstream_filters.c \ |
| 92 | 92 | $(SRC_PATH)/libavformat/protocols.c \ |
| 93 | 93 | |
| 94 | −config.h: .config | |
| 95 | −.config: $(CONFIGURABLE_COMPONENTS) | |
| 94 | +config.h: ffbuild/.config | |
| 95 | +ffbuild/.config: $(CONFIGURABLE_COMPONENTS) | |
| 96 | 96 | @-tput bold 2>/dev/null |
| 97 | 97 | @-printf '\nWARNING: $(?) newer than config.h, rerun configure\n\n' |
| 98 | 98 | @-tput sgr0 2>/dev/null |
| @@ -115,7 +115,7 @@ SUBDIR := $(1)/ · 16 unmodified lines | ||
| 115 | 115 | include $(SRC_PATH)/$(1)/Makefile |
| 116 | 116 | -include $(SRC_PATH)/$(1)/$(ARCH)/Makefile |
| 117 | 117 | -include $(SRC_PATH)/$(1)/$(INTRINSICS)/Makefile |
| 118 | −include $(SRC_PATH)/library.mak | |
| 118 | +include $(SRC_PATH)/ffbuild/library.mak | |
| 119 | 119 | endef |
| 120 | 120 | |
| 121 | 121 | $(foreach D,$(FFLIBS),$(eval $(call DOSUBDIR,lib$(D)))) |
| @@ -142,10 +142,10 @@ $(PROGS): %$(PROGSSUF)$(EXESUF): %$(PROGSSUF)_g$(EXESUF) · 20 unmodified lines | ||
| 142 | 142 | %$(PROGSSUF)_g$(EXESUF): %.o $(FF_DEP_LIBS) |
| 143 | 143 | $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(OBJS-$*) $(FF_EXTRALIBS) |
| 144 | 144 | |
| 145 | −VERSION_SH = $(SRC_PATH)/version.sh | |
| 145 | +VERSION_SH = $(SRC_PATH)/ffbuild/version.sh | |
| 146 | 146 | GIT_LOG = $(SRC_PATH)/.git/logs/HEAD |
| 147 | 147 | |
| 148 | −.version: $(wildcard $(GIT_LOG)) $(VERSION_SH) config.mak | |
| 148 | +.version: $(wildcard $(GIT_LOG)) $(VERSION_SH) ffbuild/config.mak | |
| 149 | 149 | .version: M=@ |
| 150 | 150 | |
| 151 | 151 | libavutil/ffversion.h .version: |
| @@ -194,7 +194,10 @@ clean:: · 42 unmodified lines | ||
| 194 | 194 | |
| 195 | 195 | distclean:: |
| 196 | 196 | $(RM) $(DISTCLEANSUFFIXES) |
| 197 | − $(RM) config.* .config libavutil/avconfig.h .version mapfile avversion.h version.h libavutil/ffversion.h libavcodec/codec_names.h libavcodec/bsf_list.c libavformat/protocol_list.c | |
| 197 | + $(RM) .version avversion.h config.asm config.h mapfile \ | |
| 198 | + ffbuild/.config ffbuild/config.* libavutil/avconfig.h \ | |
| 199 | + version.h libavutil/ffversion.h libavcodec/codec_names.h \ | |
| 200 | + libavcodec/bsf_list.c libavformat/protocol_list.c | |
| 198 | 201 | ifeq ($(SRC_LINK),src) |
| 199 | 202 | $(RM) src |
| 200 | 203 | endif |
| @@ -77,7 +77,7 @@ Help options: · 76 unmodified lines | ||
| 77 | 77 | --list-filters show all available filters |
| 78 | 78 | |
| 79 | 79 | Standard options: |
| 80 | − --logfile=FILE log tests and output to FILE [config.log] | |
| 80 | + --logfile=FILE log tests and output to FILE [ffbuild/config.log] | |
| 81 | 81 | --disable-logging do not log configure debug information |
| 82 | 82 | --fatal-warnings fail if any configure warning is generated |
| 83 | 83 | --prefix=PREFIX install in PREFIX [$prefix_default] |
| @@ -3224,7 +3224,7 @@ doc_deps_any="manpages htmlpages podpages txtpages" · 3140 unmodified lines | ||
| 3224 | 3224 | |
| 3225 | 3225 | # default parameters |
| 3226 | 3226 | |
| 3227 | −logfile="config.log" | |
| 3227 | +logfile="ffbuild/config.log" | |
| 3228 | 3228 | |
| 3229 | 3229 | # installation paths |
| 3230 | 3230 | prefix_default="/usr/local" |
| @@ -3581,6 +3581,7 @@ disable_components(){ · 350 unmodified lines | ||
| 3581 | 3581 | |
| 3582 | 3582 | map 'disable_components $v' $LIBRARY_LIST |
| 3583 | 3583 | |
| 3584 | +mkdir -p ffbuild | |
| 3584 | 3585 | echo "# $0 $FFMPEG_CONFIGURATION" > $logfile |
| 3585 | 3586 | set >> $logfile |
| 3586 | 3587 | |
| @@ -5152,7 +5153,7 @@ esc(){ · 1565 unmodified lines | ||
| 5152 | 5153 | echo "$*" | sed 's/%/%25/g;s/:/%3a/g' |
| 5153 | 5154 | } |
| 5154 | 5155 | |
| 5155 | −echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $FFMPEG_CONFIGURATION)" >config.fate | |
| 5156 | +echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $FFMPEG_CONFIGURATION)" > ffbuild/config.fate | |
| 5156 | 5157 | |
| 5157 | 5158 | check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable_weak pic |
| 5158 | 5159 | |
| @@ -6619,9 +6620,9 @@ test -e Makefile || echo "include $source_path/Makefile" > Makefile · 1460 unmodified lines | ||
| 6619 | 6620 | |
| 6620 | 6621 | enabled stripping || strip="echo skipping strip" |
| 6621 | 6622 | |
| 6622 | −config_files="$TMPH config.mak doc/config.texi" | |
| 6623 | +config_files="$TMPH ffbuild/config.mak doc/config.texi" | |
| 6623 | 6624 | |
| 6624 | −cat > config.mak <<EOF | |
| 6625 | +cat > ffbuild/config.mak <<EOF | |
| 6625 | 6626 | # Automatically generated by configure - do not modify! |
| 6626 | 6627 | ifndef FFMPEG_CONFIG_MAK |
| 6627 | 6628 | FFMPEG_CONFIG_MAK=1 |
| @@ -6755,18 +6756,18 @@ get_version(){ · 127 unmodified lines | ||
| 6755 | 6756 | eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file") |
| 6756 | 6757 | enabled raise_major && eval ${name}_VERSION_MAJOR=$((${name}_VERSION_MAJOR+100)) |
| 6757 | 6758 | eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO |
| 6758 | − eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak | |
| 6759 | − eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak | |
| 6760 | − eval echo "${lcname}_VERSION_MINOR=\$${name}_VERSION_MINOR" >> config.mak | |
| 6759 | + eval echo "${lcname}_VERSION=\$${name}_VERSION" >> ffbuild/config.mak | |
| 6760 | + eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> ffbuild/config.mak | |
| 6761 | + eval echo "${lcname}_VERSION_MINOR=\$${name}_VERSION_MINOR" >> ffbuild/config.mak | |
| 6761 | 6762 | } |
| 6762 | 6763 | |
| 6763 | 6764 | map 'get_version $v' $LIBRARY_LIST |
| 6764 | 6765 | |
| 6765 | −map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> config.mak' $LIBRARY_LIST | |
| 6766 | +map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> ffbuild/config.mak' $LIBRARY_LIST | |
| 6766 | 6767 | |
| 6767 | 6768 | print_program_extralibs(){ |
| 6768 | 6769 | eval "program_extralibs=\$${1}_extralibs" |
| 6769 | − eval echo "EXTRALIBS-${1}=${program_extralibs}" >> config.mak | |
| 6770 | + eval echo "EXTRALIBS-${1}=${program_extralibs}" >> ffbuild/config.mak | |
| 6770 | 6771 | } |
| 6771 | 6772 | |
| 6772 | 6773 | map 'print_program_extralibs $v' $PROGRAM_LIST |
| @@ -6816,11 +6817,11 @@ print_config CONFIG_ "$config_files" $CONFIG_LIST \ · 43 unmodified lines | ||
| 6816 | 6817 | $ALL_COMPONENTS \ |
| 6817 | 6818 | |
| 6818 | 6819 | echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH |
| 6819 | −echo "endif # FFMPEG_CONFIG_MAK" >> config.mak | |
| 6820 | +echo "endif # FFMPEG_CONFIG_MAK" >> ffbuild/config.mak | |
| 6820 | 6821 | |
| 6821 | 6822 | # Do not overwrite an unchanged config.h to avoid superfluous rebuilds. |
| 6822 | 6823 | cp_if_changed $TMPH config.h |
| 6823 | −touch .config | |
| 6824 | +touch ffbuild/.config | |
| 6824 | 6825 | |
| 6825 | 6826 | enabled yasm && cp_if_changed $TMPASM config.asm |
| 6826 | 6827 | |
| @@ -128,7 +128,7 @@ $(DOC_EXAMPLES:%$(EXESUF)=%.o): | doc/examples · 127 unmodified lines | ||
| 128 | 128 | OBJDIRS += doc/examples |
| 129 | 129 | |
| 130 | 130 | DOXY_INPUT = $(INSTHEADERS) $(DOC_EXAMPLES:%$(EXESUF)=%.c) $(LIB_EXAMPLES:%$(EXESUF)=%.c) |
| 131 | −DOXY_INPUT_DEPS = $(addprefix $(SRC_PATH)/, $(DOXY_INPUT)) config.mak | |
| 131 | +DOXY_INPUT_DEPS = $(addprefix $(SRC_PATH)/, $(DOXY_INPUT)) ffbuild/config.mak | |
| 132 | 132 | |
| 133 | 133 | doc/doxy/html: TAG = DOXY |
| 134 | 134 | doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(SRC_PATH)/doc/doxy-wrapper.sh $(DOXY_INPUT_DEPS) |
| @@ -38,14 +38,14 @@ the build system and the C: · 37 unmodified lines | ||
| 38 | 38 | |
| 39 | 39 | --- after running configure --- |
| 40 | 40 | |
| 41 | − $ grep FOOBAR config.mak | |
| 41 | + $ grep FOOBAR ffbuild/config.mak | |
| 42 | 42 | CONFIG_FOOBAR_FILTER=yes |
| 43 | 43 | $ grep FOOBAR config.h |
| 44 | 44 | #define CONFIG_FOOBAR_FILTER 1 |
| 45 | 45 | |
| 46 | −CONFIG_FOOBAR_FILTER=yes from the config.mak is later used to enable the filter in | |
| 47 | −libavfilter/Makefile and CONFIG_FOOBAR_FILTER=1 from the config.h will be used | |
| 48 | −for registering the filter in libavfilter/allfilters.c. | |
| 46 | +CONFIG_FOOBAR_FILTER=yes from the ffbuild/config.mak is later used to enable | |
| 47 | +the filter in libavfilter/Makefile and CONFIG_FOOBAR_FILTER=1 from the config.h | |
| 48 | +will be used for registering the filter in libavfilter/allfilters.c. | |
| 49 | 49 | |
| 50 | 50 | Filter code layout |
| 51 | 51 | ================== |
| @@ -0,0 +1,4 @@ | ||
| 1 | +/.config | |
| 2 | +/config.fate | |
| 3 | +/config.log | |
| 4 | +/config.mak | |
File renamed without changes.
| @@ -103,7 +103,7 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC) · 102 unmodified lines | ||
| 103 | 103 | $(OBJS): |
| 104 | 104 | endif |
| 105 | 105 | |
| 106 | −include $(SRC_PATH)/arch.mak | |
| 106 | +include $(SRC_PATH)/ffbuild/arch.mak | |
| 107 | 107 | |
| 108 | 108 | OBJS += $(OBJS-yes) |
| 109 | 109 | SLIBOBJS += $(SLIBOBJS-yes) |
| @@ -1,4 +1,4 @@ | ||
| 1 | −include $(SRC_PATH)/common.mak | |
| 1 | +include $(SRC_PATH)/ffbuild/common.mak | |
| 2 | 2 | |
| 3 | 3 | LIBVERSION := $(lib$(NAME)_VERSION) |
| 4 | 4 | LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR) |
File renamed without changes.
| @@ -1,4 +1,4 @@ | ||
| 1 | −include $(SUBDIR)../config.mak | |
| 1 | +include $(SUBDIR)../ffbuild/config.mak | |
| 2 | 2 | |
| 3 | 3 | NAME = avcodec |
| 4 | 4 | |
| @@ -1,4 +1,4 @@ | ||
| 1 | −include $(SUBDIR)../config.mak | |
| 1 | +include $(SUBDIR)../ffbuild/config.mak | |
| 2 | 2 | |
| 3 | 3 | NAME = avdevice |
| 4 | 4 | |
| @@ -1,4 +1,4 @@ | ||
| 1 | −include $(SUBDIR)../config.mak | |
| 1 | +include $(SUBDIR)../ffbuild/config.mak | |
| 2 | 2 | |
| 3 | 3 | NAME = avfilter |
| 4 | 4 | |
| @@ -1,4 +1,4 @@ | ||
| 1 | −include $(SUBDIR)../config.mak | |
| 1 | +include $(SUBDIR)../ffbuild/config.mak | |
| 2 | 2 | |
| 3 | 3 | NAME = avformat |
| 4 | 4 | |
| @@ -1,4 +1,4 @@ | ||
| 1 | −include $(SUBDIR)../config.mak | |
| 1 | +include $(SUBDIR)../ffbuild/config.mak | |
| 2 | 2 | |
| 3 | 3 | NAME = avutil |
| 4 | 4 | |
| @@ -1,4 +1,4 @@ | ||
| 1 | −include $(SUBDIR)../config.mak | |
| 1 | +include $(SUBDIR)../ffbuild/config.mak | |
| 2 | 2 | |
| 3 | 3 | NAME = postproc |
| 4 | 4 | FFLIBS = avutil |
| @@ -1,4 +1,4 @@ | ||
| 1 | −include $(SUBDIR)../config.mak | |
| 1 | +include $(SUBDIR)../ffbuild/config.mak | |
| 2 | 2 | |
| 3 | 3 | NAME = swresample |
| 4 | 4 | FFLIBS = avutil |
| @@ -1,4 +1,4 @@ | ||
| 1 | −include $(SUBDIR)../config.mak | |
| 1 | +include $(SUBDIR)../ffbuild/config.mak | |
| 2 | 2 | |
| 3 | 3 | NAME = swscale |
| 4 | 4 | |
| @@ -85,7 +85,7 @@ clean(){ · 84 unmodified lines | ||
| 85 | 85 | report(){ |
| 86 | 86 | date=$(date -u +%Y%m%d%H%M%S) |
| 87 | 87 | echo "fate:1:${date}:${slot}:${version}:$1:$2:${branch}:${comment}" >report |
| 88 | − cat ${build}/config.fate >>report | |
| 88 | + cat ${build}/ffbuild/config.fate >>report | |
| 89 | 89 | cat ${build}/tests/data/fate/*.rep >>report 2>/dev/null || for i in ${build}/tests/data/fate/*.rep ; do cat "$i" >>report 2>/dev/null; done |
| 90 | 90 | test -n "$fate_recv" && $tar report *.log | gzip | $fate_recv |
| 91 | 91 | } |
| @@ -108,7 +108,7 @@ test -d "$src" && update || checkout || die "Error fetching source" · 16 unmodified lines | ||
| 108 | 108 | |
| 109 | 109 | cd ${workdir} |
| 110 | 110 | |
| 111 | −version=$(${src}/version.sh ${src}) | |
| 111 | +version=$(${src}/ffbuild/version.sh ${src}) | |
| 112 | 112 | test "$version" = "$(cat version-$slot 2>/dev/null)" && exit 0 |
| 113 | 113 | echo ${version} >version-$slot |
| 114 | 114 | |