[FFmpeg-cvslog] fate: add macros useful for conditionally enabling things
Mans Rullgard
git at videolan.org
Thu Oct 18 11:05:43 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Tue Oct 16 14:38:44 2012 +0100| [21fed588cba73f9fe19a66acc1e23124944240ec] | committer: Mans Rullgard
fate: add macros useful for conditionally enabling things
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=21fed588cba73f9fe19a66acc1e23124944240ec
---
tests/Makefile | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tests/Makefile b/tests/Makefile
index cb9954a..58964d7 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -20,6 +20,19 @@ tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN
+ALLYES = $(strip $(call XYES, $(1)))
+XYES = $(if $(strip $(1)), \
+ $(if $(CONFIG_$(firstword $(1))), \
+ $(call XYES, $(wordlist 2, $(words $(1)), $(1)))), \
+ yes)
+
+ENCDEC = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
+ $(firstword $(2))_MUXER $(lastword $(2))_DEMUXER)
+
+ENCDEC2 = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
+ $(firstword $(2))_ENCODER $(lastword $(2))_DECODER \
+ $(firstword $(3))_MUXER $(lastword $(3))_DEMUXER)
+
include $(SRC_PATH)/tests/fate/acodec.mak
include $(SRC_PATH)/tests/fate/vcodec.mak
More information about the ffmpeg-cvslog
mailing list