Mercurial > mplayer.hg
changeset 35917:a428cba73765
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.
author | diego |
---|---|
date | Tue, 19 Mar 2013 10:42:33 +0000 |
parents | a9a29710f28a |
children | 902fef954aba |
files | Makefile configure |
diffstat | 2 files changed, 15 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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