aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--engines/sword25/kernel/kernel.cpp2
-rw-r--r--engines/sword25/module.mk12
3 files changed, 11 insertions, 5 deletions
diff --git a/configure b/configure
index f86dbd7526..f7823afa97 100755
--- a/configure
+++ b/configure
@@ -2417,7 +2417,7 @@ if test "$_theoradec" = yes ; then
LIBS="$LIBS $THEORADEC_LIBS -ltheoradec"
INCLUDES="$INCLUDES $THEORADEC_CFLAGS"
fi
-define_in_config_h_if_yes "$_theoradec" 'USE_THEORADEC'
+define_in_config_if_yes "$_theoradec" 'USE_THEORADEC'
if test ! "$_theoradec" = notsupported ; then
echo "$_theoradec"
fi
diff --git a/engines/sword25/kernel/kernel.cpp b/engines/sword25/kernel/kernel.cpp
index d976a36ab5..78181bc4d3 100644
--- a/engines/sword25/kernel/kernel.cpp
+++ b/engines/sword25/kernel/kernel.cpp
@@ -34,7 +34,9 @@
#include "common/system.h"
#include "sword25/gfx/graphicengine.h"
+#ifdef USE_THEORADEC
#include "sword25/fmv/movieplayer.h"
+#endif
#include "sword25/input/inputengine.h"
#include "sword25/kernel/kernel.h"
#include "sword25/kernel/persistenceservice.h"
diff --git a/engines/sword25/module.mk b/engines/sword25/module.mk
index 76d44cc3fc..1f5374e353 100644
--- a/engines/sword25/module.mk
+++ b/engines/sword25/module.mk
@@ -3,10 +3,6 @@ MODULE := engines/sword25
MODULE_OBJS := \
detection.o \
sword25.o \
- fmv/movieplayer.o \
- fmv/movieplayer_script.o \
- fmv/theora_decoder.o \
- fmv/yuvtorgba.o \
gfx/animation.o \
gfx/animationdescription.o \
gfx/animationresource.o \
@@ -99,6 +95,14 @@ MODULE_OBJS := \
util/pluto/pluto.o \
util/pluto/plzio.o
+ifdef USE_THEORADEC
+MODULE_OBJS += \
+ fmv/movieplayer.o \
+ fmv/movieplayer_script.o \
+ fmv/theora_decoder.o \
+ fmv/yuvtorgba.o
+endif
+
# This module can be built as a plugin
ifeq ($(ENABLE_SWORD25), DYNAMIC_PLUGIN)
PLUGIN := 1