aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/kernel/kernel.cpp2
-rw-r--r--engines/sword25/module.mk12
2 files changed, 10 insertions, 4 deletions
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