aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_project/create_project.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/create_project/create_project.cpp')
-rw-r--r--devtools/create_project/create_project.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp
index 391449cc60..7bcea8e795 100644
--- a/devtools/create_project/create_project.cpp
+++ b/devtools/create_project/create_project.cpp
@@ -393,13 +393,13 @@ int main(int argc, char *argv[]) {
bool updatesEnabled = false, curlEnabled = false, sdlnetEnabled = false, ttsEnabled = false;
for (FeatureList::const_iterator i = setup.features.begin(); i != setup.features.end(); ++i) {
if (i->enable) {
- if (!strcmp(i->name, "updates"))
+ if (!updatesEnabled && !strcmp(i->name, "updates"))
updatesEnabled = true;
- else if (!strcmp(i->name, "libcurl"))
+ else if (!curlEnabled && !strcmp(i->name, "libcurl"))
curlEnabled = true;
- else if (!strcmp(i->name, "sdlnet"))
+ else if (!sdlnetEnabled && !strcmp(i->name, "sdlnet"))
sdlnetEnabled = true;
- else if (!strcmp(i->name, "tts"))
+ else if (!ttsEnabled && !strcmp(i->name, "tts"))
ttsEnabled = true;
}
}
@@ -423,13 +423,12 @@ int main(int argc, char *argv[]) {
if (sdlnetEnabled) {
setup.libraries.push_back("iphlpapi");
}
+ if (ttsEnabled) {
+ setup.libraries.push_back("sapi");
+ }
setup.libraries.push_back("winmm");
}
- if (ttsEnabled) {
- setup.libraries.push_back("sapi");
- }
-
setup.defines.push_back("SDL_BACKEND");
if (!setup.useSDL2) {
cout << "\nBuilding against SDL 1.2\n\n";
@@ -1095,7 +1094,7 @@ const Feature s_features[] = {
{ "langdetect", "USE_DETECTLANG", "", true, "System language detection support" }, // This feature actually depends on "translation", there
// is just no current way of properly detecting this...
{ "text-console", "USE_TEXT_CONSOLE_FOR_DEBUGGER", "", false, "Text console debugger" }, // This feature is always applied in xcode projects
- { "tts", "USE_TTS", "", true, "Text to speech support"}
+ { "tts", "USE_TTS", "", true, "Text to speech support"}
};
const Tool s_tools[] = {