diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 19 | ||||
-rwxr-xr-x | configure | 25 | ||||
-rw-r--r-- | doc/Makefile | 2 | ||||
-rw-r--r-- | doc/writing_filters.txt | 8 | ||||
-rw-r--r-- | ffbuild/.gitignore | 4 | ||||
-rw-r--r-- | ffbuild/arch.mak (renamed from arch.mak) | 0 | ||||
-rw-r--r-- | ffbuild/common.mak (renamed from common.mak) | 2 | ||||
-rw-r--r-- | ffbuild/library.mak (renamed from library.mak) | 2 | ||||
-rwxr-xr-x | ffbuild/version.sh (renamed from version.sh) | 0 | ||||
-rw-r--r-- | libavcodec/Makefile | 2 | ||||
-rw-r--r-- | libavdevice/Makefile | 2 | ||||
-rw-r--r-- | libavfilter/Makefile | 2 | ||||
-rw-r--r-- | libavformat/Makefile | 2 | ||||
-rw-r--r-- | libavutil/Makefile | 2 | ||||
-rw-r--r-- | libpostproc/Makefile | 2 | ||||
-rw-r--r-- | libswresample/Makefile | 2 | ||||
-rw-r--r-- | libswscale/Makefile | 2 | ||||
-rwxr-xr-x | tests/fate.sh | 4 |
19 files changed, 47 insertions, 38 deletions
@@ -27,7 +27,8 @@ /ffplay /ffprobe /ffserver -/config.* +/config.asm +/config.h /coverage.info /avversion.h /lcov/ @@ -1,5 +1,5 @@ MAIN_MAKEFILE=1 -include config.mak +include ffbuild/config.mak vpath %.c $(SRC_PATH) vpath %.cpp $(SRC_PATH) @@ -66,7 +66,7 @@ SKIPHEADERS = cmdutils_common_opts.h \ all: all-yes include $(SRC_PATH)/tools/Makefile -include $(SRC_PATH)/common.mak +include $(SRC_PATH)/ffbuild/common.mak FF_EXTRALIBS := $(FFEXTRALIBS) FF_DEP_LIBS := $(DEP_LIBS) @@ -91,8 +91,8 @@ CONFIGURABLE_COMPONENTS = \ $(SRC_PATH)/libavcodec/bitstream_filters.c \ $(SRC_PATH)/libavformat/protocols.c \ -config.h: .config -.config: $(CONFIGURABLE_COMPONENTS) +config.h: ffbuild/.config +ffbuild/.config: $(CONFIGURABLE_COMPONENTS) @-tput bold 2>/dev/null @-printf '\nWARNING: $(?) newer than config.h, rerun configure\n\n' @-tput sgr0 2>/dev/null @@ -115,7 +115,7 @@ SUBDIR := $(1)/ include $(SRC_PATH)/$(1)/Makefile -include $(SRC_PATH)/$(1)/$(ARCH)/Makefile -include $(SRC_PATH)/$(1)/$(INTRINSICS)/Makefile -include $(SRC_PATH)/library.mak +include $(SRC_PATH)/ffbuild/library.mak endef $(foreach D,$(FFLIBS),$(eval $(call DOSUBDIR,lib$(D)))) @@ -142,10 +142,10 @@ $(PROGS): %$(PROGSSUF)$(EXESUF): %$(PROGSSUF)_g$(EXESUF) %$(PROGSSUF)_g$(EXESUF): %.o $(FF_DEP_LIBS) $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(OBJS-$*) $(FF_EXTRALIBS) -VERSION_SH = $(SRC_PATH)/version.sh +VERSION_SH = $(SRC_PATH)/ffbuild/version.sh GIT_LOG = $(SRC_PATH)/.git/logs/HEAD -.version: $(wildcard $(GIT_LOG)) $(VERSION_SH) config.mak +.version: $(wildcard $(GIT_LOG)) $(VERSION_SH) ffbuild/config.mak .version: M=@ libavutil/ffversion.h .version: @@ -194,7 +194,10 @@ clean:: distclean:: $(RM) $(DISTCLEANSUFFIXES) - $(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 + $(RM) .version avversion.h config.asm config.h mapfile \ + ffbuild/.config ffbuild/config.* libavutil/avconfig.h \ + version.h libavutil/ffversion.h libavcodec/codec_names.h \ + libavcodec/bsf_list.c libavformat/protocol_list.c ifeq ($(SRC_LINK),src) $(RM) src endif @@ -77,7 +77,7 @@ Help options: --list-filters show all available filters Standard options: - --logfile=FILE log tests and output to FILE [config.log] + --logfile=FILE log tests and output to FILE [ffbuild/config.log] --disable-logging do not log configure debug information --fatal-warnings fail if any configure warning is generated --prefix=PREFIX install in PREFIX [$prefix_default] @@ -3224,7 +3224,7 @@ doc_deps_any="manpages htmlpages podpages txtpages" # default parameters -logfile="config.log" +logfile="ffbuild/config.log" # installation paths prefix_default="/usr/local" @@ -3581,6 +3581,7 @@ disable_components(){ map 'disable_components $v' $LIBRARY_LIST +mkdir -p ffbuild echo "# $0 $FFMPEG_CONFIGURATION" > $logfile set >> $logfile @@ -5152,7 +5153,7 @@ esc(){ echo "$*" | sed 's/%/%25/g;s/:/%3a/g' } -echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $FFMPEG_CONFIGURATION)" >config.fate +echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $FFMPEG_CONFIGURATION)" > ffbuild/config.fate check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable_weak pic @@ -6619,9 +6620,9 @@ test -e Makefile || echo "include $source_path/Makefile" > Makefile enabled stripping || strip="echo skipping strip" -config_files="$TMPH config.mak doc/config.texi" +config_files="$TMPH ffbuild/config.mak doc/config.texi" -cat > config.mak <<EOF +cat > ffbuild/config.mak <<EOF # Automatically generated by configure - do not modify! ifndef FFMPEG_CONFIG_MAK FFMPEG_CONFIG_MAK=1 @@ -6755,18 +6756,18 @@ get_version(){ eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file") enabled raise_major && eval ${name}_VERSION_MAJOR=$((${name}_VERSION_MAJOR+100)) eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO - eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak - eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak - eval echo "${lcname}_VERSION_MINOR=\$${name}_VERSION_MINOR" >> config.mak + eval echo "${lcname}_VERSION=\$${name}_VERSION" >> ffbuild/config.mak + eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> ffbuild/config.mak + eval echo "${lcname}_VERSION_MINOR=\$${name}_VERSION_MINOR" >> ffbuild/config.mak } map 'get_version $v' $LIBRARY_LIST -map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> config.mak' $LIBRARY_LIST +map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> ffbuild/config.mak' $LIBRARY_LIST print_program_extralibs(){ eval "program_extralibs=\$${1}_extralibs" - eval echo "EXTRALIBS-${1}=${program_extralibs}" >> config.mak + eval echo "EXTRALIBS-${1}=${program_extralibs}" >> ffbuild/config.mak } map 'print_program_extralibs $v' $PROGRAM_LIST @@ -6816,11 +6817,11 @@ print_config CONFIG_ "$config_files" $CONFIG_LIST \ $ALL_COMPONENTS \ echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH -echo "endif # FFMPEG_CONFIG_MAK" >> config.mak +echo "endif # FFMPEG_CONFIG_MAK" >> ffbuild/config.mak # Do not overwrite an unchanged config.h to avoid superfluous rebuilds. cp_if_changed $TMPH config.h -touch .config +touch ffbuild/.config enabled yasm && cp_if_changed $TMPASM config.asm diff --git a/doc/Makefile b/doc/Makefile index c193fc3..4cc9eed 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -128,7 +128,7 @@ $(DOC_EXAMPLES:%$(EXESUF)=%.o): | doc/examples OBJDIRS += doc/examples DOXY_INPUT = $(INSTHEADERS) $(DOC_EXAMPLES:%$(EXESUF)=%.c) $(LIB_EXAMPLES:%$(EXESUF)=%.c) -DOXY_INPUT_DEPS = $(addprefix $(SRC_PATH)/, $(DOXY_INPUT)) config.mak +DOXY_INPUT_DEPS = $(addprefix $(SRC_PATH)/, $(DOXY_INPUT)) ffbuild/config.mak doc/doxy/html: TAG = DOXY doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(SRC_PATH)/doc/doxy-wrapper.sh $(DOXY_INPUT_DEPS) diff --git a/doc/writing_filters.txt b/doc/writing_filters.txt index 66ebb53..5cd4ecd 100644 --- a/doc/writing_filters.txt +++ b/doc/writing_filters.txt @@ -38,14 +38,14 @@ the build system and the C: --- after running configure --- - $ grep FOOBAR config.mak + $ grep FOOBAR ffbuild/config.mak CONFIG_FOOBAR_FILTER=yes $ grep FOOBAR config.h #define CONFIG_FOOBAR_FILTER 1 -CONFIG_FOOBAR_FILTER=yes from the config.mak is later used to enable the filter in -libavfilter/Makefile and CONFIG_FOOBAR_FILTER=1 from the config.h will be used -for registering the filter in libavfilter/allfilters.c. +CONFIG_FOOBAR_FILTER=yes from the ffbuild/config.mak is later used to enable +the filter in libavfilter/Makefile and CONFIG_FOOBAR_FILTER=1 from the config.h +will be used for registering the filter in libavfilter/allfilters.c. Filter code layout ================== diff --git a/ffbuild/.gitignore b/ffbuild/.gitignore new file mode 100644 index 0000000..693b7aa --- /dev/null +++ b/ffbuild/.gitignore @@ -0,0 +1,4 @@ +/.config +/config.fate +/config.log +/config.mak diff --git a/arch.mak b/ffbuild/arch.mak index 08f78b4..08f78b4 100644 --- a/arch.mak +++ b/ffbuild/arch.mak diff --git a/common.mak b/ffbuild/common.mak index 909dfc1..1957370 100644 --- a/common.mak +++ b/ffbuild/common.mak @@ -103,7 +103,7 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC) $(OBJS): endif -include $(SRC_PATH)/arch.mak +include $(SRC_PATH)/ffbuild/arch.mak OBJS += $(OBJS-yes) SLIBOBJS += $(SLIBOBJS-yes) diff --git a/library.mak b/ffbuild/library.mak index 266176f..5e576d1 100644 --- a/library.mak +++ b/ffbuild/library.mak @@ -1,4 +1,4 @@ -include $(SRC_PATH)/common.mak +include $(SRC_PATH)/ffbuild/common.mak LIBVERSION := $(lib$(NAME)_VERSION) LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR) diff --git a/version.sh b/ffbuild/version.sh index edc4dd3..edc4dd3 100755 --- a/version.sh +++ b/ffbuild/version.sh diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 21cd81c..66d7587 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -1,4 +1,4 @@ -include $(SUBDIR)../config.mak +include $(SUBDIR)../ffbuild/config.mak NAME = avcodec diff --git a/libavdevice/Makefile b/libavdevice/Makefile index 6139f19..fb7623f 100644 --- a/libavdevice/Makefile +++ b/libavdevice/Makefile @@ -1,4 +1,4 @@ -include $(SUBDIR)../config.mak +include $(SUBDIR)../ffbuild/config.mak NAME = avdevice diff --git a/libavfilter/Makefile b/libavfilter/Makefile index 66c36e4..d19c555 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -1,4 +1,4 @@ -include $(SUBDIR)../config.mak +include $(SUBDIR)../ffbuild/config.mak NAME = avfilter diff --git a/libavformat/Makefile b/libavformat/Makefile index 6bdfbe6..d82639d 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -1,4 +1,4 @@ -include $(SUBDIR)../config.mak +include $(SUBDIR)../ffbuild/config.mak NAME = avformat diff --git a/libavutil/Makefile b/libavutil/Makefile index d669a92..0239c49 100644 --- a/libavutil/Makefile +++ b/libavutil/Makefile @@ -1,4 +1,4 @@ -include $(SUBDIR)../config.mak +include $(SUBDIR)../ffbuild/config.mak NAME = avutil diff --git a/libpostproc/Makefile b/libpostproc/Makefile index b9bb4be..3c21f00 100644 --- a/libpostproc/Makefile +++ b/libpostproc/Makefile @@ -1,4 +1,4 @@ -include $(SUBDIR)../config.mak +include $(SUBDIR)../ffbuild/config.mak NAME = postproc FFLIBS = avutil diff --git a/libswresample/Makefile b/libswresample/Makefile index 120ee33..f50ee0d 100644 --- a/libswresample/Makefile +++ b/libswresample/Makefile @@ -1,4 +1,4 @@ -include $(SUBDIR)../config.mak +include $(SUBDIR)../ffbuild/config.mak NAME = swresample FFLIBS = avutil diff --git a/libswscale/Makefile b/libswscale/Makefile index 183167c..19182b3 100644 --- a/libswscale/Makefile +++ b/libswscale/Makefile @@ -1,4 +1,4 @@ -include $(SUBDIR)../config.mak +include $(SUBDIR)../ffbuild/config.mak NAME = swscale diff --git a/tests/fate.sh b/tests/fate.sh index 6fa631e..3e106b7 100755 --- a/tests/fate.sh +++ b/tests/fate.sh @@ -85,7 +85,7 @@ clean(){ report(){ date=$(date -u +%Y%m%d%H%M%S) echo "fate:1:${date}:${slot}:${version}:$1:$2:${branch}:${comment}" >report - cat ${build}/config.fate >>report + cat ${build}/ffbuild/config.fate >>report 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 test -n "$fate_recv" && $tar report *.log | gzip | $fate_recv } @@ -108,7 +108,7 @@ test -d "$src" && update || checkout || die "Error fetching source" cd ${workdir} -version=$(${src}/version.sh ${src}) +version=$(${src}/ffbuild/version.sh ${src}) test "$version" = "$(cat version-$slot 2>/dev/null)" && exit 0 echo ${version} >version-$slot |