# HG changeset patch # User diego # Date 1363689753 0 # Node ID a428cba73765dcbaaa6c02a13e372c3ec9e0376a # Parent a9a29710f28ae7a5b7ab7f2267ef8d79ed07b52b build: Add proper conditional compilation for all tools. Also add an SDL image library check to configure, which is required for the bmovl test tool. diff -r a9a29710f28a -r a428cba73765 Makefile --- a/Makefile Tue Mar 19 10:42:30 2013 +0000 +++ b/Makefile Tue Mar 19 10:42:33 2013 +0000 @@ -1031,19 +1031,18 @@ testsclean: -rm -f $(call ADD_ALL_EXESUFS,$(TESTS)) -TOOLS-$(ARCH_X86) += fastmemcpybench modify_reg +TOOLS-$(ARCH_X86) += fastmemcpybench modify_reg +TOOLS-$(HAVE_WINDOWS_H) += vfw2menc +TOOLS-$(SDL_IMAGE) += bmovl-test TOOLS := $(addprefix TOOLS/,alaw-gen asfinfo avi-fix avisubdump compare dump_mp4 movinfo netstream subrip vivodump $(TOOLS-yes)) -ALLTOOLS = $(TOOLS) TOOLS/bmovl-test TOOLS/vfw2menc - -TOOLS_DEP_FILES = $(addsuffix .d,$(ALLTOOLS)) +TOOLS_DEP_FILES = $(addsuffix .d,$(TOOLS)) tools: $(addsuffix $(EXESUF),$(TOOLS)) -alltools: $(addsuffix $(EXESUF),$(ALLTOOLS)) toolsclean: - -rm -f $(call ADD_ALL_EXESUFS,$(ALLTOOLS)) + -rm -f $(call ADD_ALL_EXESUFS,$(TOOLS) $(TOOLS-no)) -rm -f TOOLS/realcodecs/*.so.6.0 TOOLS/bmovl-test$(EXESUF): LIBS = -lSDL_image diff -r a9a29710f28a -r a428cba73765 configure --- a/configure Tue Mar 19 10:42:30 2013 +0000 +++ b/configure Tue Mar 19 10:42:33 2013 +0000 @@ -5308,6 +5308,14 @@ echores "$_sdl" +echocheck "SDL image" +sdl_image=no +if test "$_sdl" = yes ; then + header_check SDL/SDL_image.h -lSDL_image && sdl_image=yes +fi +echores "$sdl_image" + + # make sure this stays below CoreVideo to avoid issues due to namespace # conflicts between -lGL and -framework OpenGL echocheck "OpenGL" @@ -8360,6 +8368,7 @@ GUI_WIN32 = $_gui_win32 HAVE_POSIX_SELECT = $_posix_select HAVE_SYS_MMAN_H = $_mman +HAVE_WINDOWS_H = $windows_h IVTV = $_ivtv JACK = $_jack JOYSTICK = $_joystick @@ -8415,6 +8424,7 @@ REAL_CODECS = $_real S3FB = $_s3fb SDL = $_sdl +SDL_IMAGE = $sdl_image SPEEX = $_speex STREAM_CACHE = $_stream_cache SGIAUDIO = $_sgiaudio