CREATE_PROJECT: --disable-opengl disables all OpenGL features
This commit is contained in:
parent
1ca009ddc6
commit
f22f08059c
1 changed files with 14 additions and 6 deletions
|
@ -304,6 +304,19 @@ int main(int argc, char *argv[]) {
|
|||
j->enable = false;
|
||||
}
|
||||
|
||||
// HACK: Vorbis and Tremor can not be enabled simultaneously
|
||||
if (getFeatureBuildState("tremor", setup.features)) {
|
||||
setFeatureBuildState("vorbis", setup.features, false);
|
||||
}
|
||||
|
||||
// HACK: These features depend on OpenGL
|
||||
if (!getFeatureBuildState("opengl", setup.features)) {
|
||||
setFeatureBuildState("opengl_game", setup.features, false);
|
||||
setFeatureBuildState("opengl_shaders", setup.features, false);
|
||||
setFeatureBuildState("opengles2", setup.features, false);
|
||||
setFeatureBuildState("glew", setup.features, false);
|
||||
}
|
||||
|
||||
// Disable engines for which we are missing dependencies
|
||||
for (EngineDescList::const_iterator i = setup.engines.begin(); i != setup.engines.end(); ++i) {
|
||||
if (i->enable) {
|
||||
|
@ -318,11 +331,6 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
// HACK: Vorbis and Tremor can not be enabled simultaneously
|
||||
if (getFeatureBuildState("tremor", setup.features)) {
|
||||
setFeatureBuildState("vorbis", setup.features, false);
|
||||
}
|
||||
|
||||
// Print status
|
||||
cout << "Enabled engines:\n\n";
|
||||
for (EngineDescList::const_iterator i = setup.engines.begin(); i != setup.engines.end(); ++i) {
|
||||
|
@ -1068,7 +1076,7 @@ const Feature s_features[] = {
|
|||
{ "text-console", "USE_TEXT_CONSOLE_FOR_DEBUGGER", false, false, "Text console debugger" }, // This feature is always applied in xcode projects
|
||||
{ "tts", "USE_TTS", false, true, "Text to speech support"},
|
||||
{"builtin-resources", "BUILTIN_RESOURCES", false, true, "include resources (e.g. engine data, fonts) into the binary"},
|
||||
{"detection-static", "USE_DETECTION_FEATURES_STATIC", false, true, "Static linking of detection objects for engines."},
|
||||
{ "detection-static", "USE_DETECTION_FEATURES_STATIC", false, true, "Static linking of detection objects for engines."},
|
||||
{ "cxx11", "USE_CXX11", false, true, "Compile with c++11 support"}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue