aboutsummaryrefslogtreecommitdiff
path: root/backends/module.mk
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-08-15 15:30:30 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commitb97333d4b715013f37700c200fb1619da9225de8 (patch)
tree1a96019cdf8bada4fdda64123dc3b10506121438 /backends/module.mk
parentd49331132abf01b6a22c9dd051a042914206fd6e (diff)
downloadscummvm-rg350-b97333d4b715013f37700c200fb1619da9225de8.tar.gz
scummvm-rg350-b97333d4b715013f37700c200fb1619da9225de8.tar.bz2
scummvm-rg350-b97333d4b715013f37700c200fb1619da9225de8.zip
TTS: Remove USE_PLATFORM_TTS defines
Use defined(USE_TTS) && defined(PLATFORM) instead
Diffstat (limited to 'backends/module.mk')
-rw-r--r--backends/module.mk31
1 files changed, 18 insertions, 13 deletions
diff --git a/backends/module.mk b/backends/module.mk
index 11185fcf05..3fe829b42a 100644
--- a/backends/module.mk
+++ b/backends/module.mk
@@ -166,6 +166,12 @@ MODULE_OBJS += \
plugins/posix/posix-provider.o \
saves/posix/posix-saves.o \
taskbar/unity/unity-taskbar.o
+
+ifdef USE_TTS
+MODULE_OBJS += \
+ text-to-speech/linux/linux-text-to-speech.o
+endif
+
endif
ifdef MACOSX
@@ -176,6 +182,12 @@ MODULE_OBJS += \
midi/coremidi.o \
updates/macosx/macosx-updates.o \
taskbar/macosx/macosx-taskbar.o
+
+ifdef USE_TTS
+MODULE_OBJS += \
+ text-to-speech/macosx/macosx-text-to-speech.o
+endif
+
endif
ifdef WIN32
@@ -189,6 +201,12 @@ MODULE_OBJS += \
saves/windows/windows-saves.o \
updates/win32/win32-updates.o \
taskbar/win32/win32-taskbar.o
+
+ifdef USE_TTS
+MODULE_OBJS += \
+ text-to-speech/windows/windows-text-to-speech.o
+endif
+
endif
ifeq ($(BACKEND),android)
@@ -344,18 +362,5 @@ MODULE_OBJS += \
saves/recorder/recorder-saves.o
endif
-ifdef USE_LINUX_TTS
-MODULE_OBJS += \
- text-to-speech/linux/linux-text-to-speech.o
-endif
-ifdef USE_WINDOWS_TTS
-MODULE_OBJS += \
- text-to-speech/windows/windows-text-to-speech.o
-endif
-ifdef USE_MACOSX_TTS
-MODULE_OBJS += \
- text-to-speech/macosx/macosx-text-to-speech.o
-endif
-
# Include common rules
include $(srcdir)/rules.mk