diff options
-rw-r--r-- | src/gui/gui.pro | 2 | ||||
-rw-r--r-- | src/src.pro | 2 | ||||
-rw-r--r-- | tools/configure/configureapp.cpp | 51 |
3 files changed, 18 insertions, 37 deletions
diff --git a/src/gui/gui.pro b/src/gui/gui.pro index 462f133ff8..d1d0041616 100644 --- a/src/gui/gui.pro +++ b/src/gui/gui.pro @@ -18,7 +18,7 @@ MODULE_PLUGIN_TYPES = \ egldeviceintegrations # This is here only because the platform plugin is no module, obviously. -win32:contains(QT_CONFIG, angle)|contains(QT_CONFIG, dynamicgl) { +contains(QT_CONFIG, angle) { MODULE_AUX_INCLUDES = \ \$\$QT_MODULE_INCLUDE_BASE/QtANGLE } diff --git a/src/src.pro b/src/src.pro index ac336f316d..c4da871abe 100644 --- a/src/src.pro +++ b/src/src.pro @@ -163,7 +163,7 @@ contains(QT_CONFIG, concurrent):SUBDIRS += src_concurrent SUBDIRS += src_3rdparty_harfbuzzng src_gui.depends += src_3rdparty_harfbuzzng } - win32:contains(QT_CONFIG, angle)|contains(QT_CONFIG, dynamicgl) { + contains(QT_CONFIG, angle) { SUBDIRS += src_angle src_gui.depends += src_angle } diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 5b62657d2a..740d8a6edb 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -245,7 +245,7 @@ Configure::Configure(int& argc, char** argv) : verbose(0) dictionary[ "ICU" ] = "no"; dictionary[ "ANGLE" ] = "auto"; - dictionary[ "DYNAMICGL" ] = "auto"; + dictionary[ "DYNAMICGL" ] = "no"; dictionary[ "GIF" ] = "yes"; dictionary[ "JPEG" ] = "yes"; @@ -1508,8 +1508,6 @@ void Configure::applySpecSpecifics() dictionary[ "LIBJPEG" ] = "qt"; dictionary[ "LIBPNG" ] = "qt"; dictionary[ "FREETYPE" ] = "yes"; - dictionary[ "OPENGL" ] = "yes"; - dictionary[ "OPENGL_ES_2" ] = "yes"; dictionary[ "SSL" ] = "yes"; dictionary[ "OPENSSL" ] = "no"; dictionary[ "DBUS" ] = "no"; @@ -1517,8 +1515,6 @@ void Configure::applySpecSpecifics() dictionary[ "PCRE" ] = "qt"; dictionary[ "ICU" ] = "qt"; dictionary[ "LARGE_FILE" ] = "no"; - dictionary[ "ANGLE" ] = "yes"; - dictionary[ "DYNAMICGL" ] = "no"; } else if (dictionary.value("XQMAKESPEC").startsWith("linux")) { //TODO actually wrong. //TODO dictionary[ "STYLE_WINDOWSXP" ] = "no"; @@ -2046,10 +2042,6 @@ bool Configure::checkAvailability(const QString &part) else if (part == "ICU") available = tryCompileProject("unix/icu"); - else if (part == "ANGLE") { - available = checkAngleAvailability(); - } - else if (part == "HARFBUZZ") available = tryCompileProject("unix/harfbuzz"); @@ -2214,18 +2206,16 @@ void Configure::autoDetection() // ANGLE detection if (dictionary["ANGLE"] == "auto") { - if (dictionary["OPENGL_ES_2"] == "yes") { - dictionary["ANGLE"] = checkAngleAvailability() ? "yes" : "no"; + if (dictionary["OPENGL_ES_2"] == "yes" || dictionary["DYNAMICGL"] == "yes") { + QString err; + dictionary["ANGLE"] = checkAngleAvailability(&err) ? "yes" : "no"; dictionary["ANGLE_FROM"] = "detected"; + dictionary["ANGLE_ERR"] = err; } else { dictionary["ANGLE"] = "no"; } } - // Dynamic GL. This must be explicitly requested, no autodetection. - if (dictionary["DYNAMICGL"] == "auto") - dictionary["DYNAMICGL"] = "no"; - // Image format detection if (dictionary["LIBJPEG"] == "auto") dictionary["LIBJPEG"] = checkAvailability("LIBJPEG") ? defaultTo("LIBJPEG") : "qt"; @@ -2439,43 +2429,34 @@ bool Configure::verifyConfiguration() prompt = true; } - // -angle given on command line, but Direct X cannot be found. - if (dictionary["ANGLE"] != "no") { - QString errorMessage; - if (!checkAngleAvailability(&errorMessage)) { - cout << "WARNING: ANGLE specified, but the DirectX SDK could not be detected:" << endl - << " " << qPrintable(errorMessage) << endl - << "The build will most likely fail." << endl; - prompt = true; - } - } else if (dictionary["ANGLE"] == "no") { + if (dictionary["ANGLE"] == "no") { if (dictionary["ANGLE_FROM"] == "detected") { - QString errorMessage; - checkAngleAvailability(&errorMessage); + QString errorMessage = dictionary["ANGLE_ERR"]; cout << "WARNING: The DirectX SDK could not be detected:" << endl << " " << qPrintable(errorMessage) << endl << "Disabling the ANGLE backend." << endl; prompt = true; } - if ((dictionary["OPENGL_ES_2"] == "yes") && !dictionary.contains("XQMAKESPEC")) { + if (dictionary["OPENGL_ES_2"] == "yes" + && (platform() == WINDOWS || platform() == WINDOWS_RT)) { cout << endl << "WARNING: Using OpenGL ES 2.0 without ANGLE." << endl << "Specify -opengl desktop to use Open GL." << endl << "The build will most likely fail." << endl; prompt = true; } - } - - if (dictionary["DYNAMICGL"] == "yes") { - if (dictionary["OPENGL_ES_2"] == "yes" || dictionary["ANGLE"] != "no") { - cout << "ERROR: Dynamic OpenGL cannot be used with -angle." << endl; - dictionary[ "DONE" ] = "error"; + } else if (dictionary["ANGLE_FROM"] == "commandline") { + QString errorMessage; + if (!checkAngleAvailability(&errorMessage)) { + cout << "WARNING: ANGLE specified, but the DirectX SDK could not be detected:" << endl + << " " << qPrintable(errorMessage) << endl + << "The build will most likely fail." << endl; } } if (dictionary["OPENGL"] == "no" || dictionary["OPENGL_ES_2"] == "no") { if (dictionary.value("XQMAKESPEC").startsWith("winphone") || dictionary.value("XQMAKESPEC").startsWith("winrt")) { - cout << "ERROR: Option -no-opengl is not valid for WinRT." << endl; + cout << "ERROR: Only '-opengl es2' is valid for WinRT." << endl; dictionary[ "DONE" ] = "error"; } } |