From a50abde1b1228aa8364349728ad7f4f328d4a2f4 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 13 Jul 2011 12:08:26 -0400 Subject: BUILD: Allow for disabling Bink support --- video/bink_decoder.h | 8 +++++++- video/module.mk | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'video') diff --git a/video/bink_decoder.h b/video/bink_decoder.h index 8cb447749d..ceb55391a9 100644 --- a/video/bink_decoder.h +++ b/video/bink_decoder.h @@ -24,6 +24,10 @@ // based quite heavily on the Bink decoder found in FFmpeg. // Many thanks to Kostya Shishkov for doing the hard work. +#include "common/scummsys.h" + +#ifdef USE_BINK + #ifndef VIDEO_BINK_DECODER_H #define VIDEO_BINK_DECODER_H @@ -325,4 +329,6 @@ private: } // End of namespace Video -#endif +#endif // VIDEO_BINK_DECODER_H + +#endif // USE_BINK diff --git a/video/module.mk b/video/module.mk index 98c84e3516..ceeac94384 100644 --- a/video/module.mk +++ b/video/module.mk @@ -2,7 +2,6 @@ MODULE := video MODULE_OBJS := \ avi_decoder.o \ - bink_decoder.o \ coktel_decoder.o \ dxa_decoder.o \ flic_decoder.o \ @@ -20,5 +19,10 @@ MODULE_OBJS := \ codecs/smc.o \ codecs/truemotion1.o +ifdef USE_BINK +MODULE_OBJS += \ + bink_decoder.o +endif + # Include common rules include $(srcdir)/rules.mk -- cgit v1.2.3