CREATE_PROJECT: Only link to sapi on Windows
This commit is contained in:
parent
a29f1fdbb4
commit
316bb297b3
1 changed files with 8 additions and 9 deletions
|
@ -393,13 +393,13 @@ int main(int argc, char *argv[]) {
|
||||||
bool updatesEnabled = false, curlEnabled = false, sdlnetEnabled = false, ttsEnabled = false;
|
bool updatesEnabled = false, curlEnabled = false, sdlnetEnabled = false, ttsEnabled = false;
|
||||||
for (FeatureList::const_iterator i = setup.features.begin(); i != setup.features.end(); ++i) {
|
for (FeatureList::const_iterator i = setup.features.begin(); i != setup.features.end(); ++i) {
|
||||||
if (i->enable) {
|
if (i->enable) {
|
||||||
if (!strcmp(i->name, "updates"))
|
if (!updatesEnabled && !strcmp(i->name, "updates"))
|
||||||
updatesEnabled = true;
|
updatesEnabled = true;
|
||||||
else if (!strcmp(i->name, "libcurl"))
|
else if (!curlEnabled && !strcmp(i->name, "libcurl"))
|
||||||
curlEnabled = true;
|
curlEnabled = true;
|
||||||
else if (!strcmp(i->name, "sdlnet"))
|
else if (!sdlnetEnabled && !strcmp(i->name, "sdlnet"))
|
||||||
sdlnetEnabled = true;
|
sdlnetEnabled = true;
|
||||||
else if (!strcmp(i->name, "tts"))
|
else if (!ttsEnabled && !strcmp(i->name, "tts"))
|
||||||
ttsEnabled = true;
|
ttsEnabled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -423,12 +423,11 @@ int main(int argc, char *argv[]) {
|
||||||
if (sdlnetEnabled) {
|
if (sdlnetEnabled) {
|
||||||
setup.libraries.push_back("iphlpapi");
|
setup.libraries.push_back("iphlpapi");
|
||||||
}
|
}
|
||||||
setup.libraries.push_back("winmm");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ttsEnabled) {
|
if (ttsEnabled) {
|
||||||
setup.libraries.push_back("sapi");
|
setup.libraries.push_back("sapi");
|
||||||
}
|
}
|
||||||
|
setup.libraries.push_back("winmm");
|
||||||
|
}
|
||||||
|
|
||||||
setup.defines.push_back("SDL_BACKEND");
|
setup.defines.push_back("SDL_BACKEND");
|
||||||
if (!setup.useSDL2) {
|
if (!setup.useSDL2) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue