summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/configure/Makefile.mingw1
-rw-r--r--tools/configure/Makefile.win322
-rw-r--r--tools/configure/configure.pro1
-rw-r--r--tools/configure/configureapp.cpp223
-rw-r--r--tools/configure/configureapp.h23
5 files changed, 87 insertions, 163 deletions
diff --git a/tools/configure/Makefile.mingw b/tools/configure/Makefile.mingw
index db8db54888..736c14731e 100644
--- a/tools/configure/Makefile.mingw
+++ b/tools/configure/Makefile.mingw
@@ -49,6 +49,7 @@ OBJECTS = \
qfsfileengine_win.o \
qfsfileengine_iterator.o \
qiodevice.o \
+ qdebug.o \
qtextstream.o \
qlogging.o \
qtemporaryfile.o \
diff --git a/tools/configure/Makefile.win32 b/tools/configure/Makefile.win32
index 98a2181e39..f783ef8ac3 100644
--- a/tools/configure/Makefile.win32
+++ b/tools/configure/Makefile.win32
@@ -47,6 +47,7 @@ OBJECTS = \
qfsfileengine_win.obj \
qfsfileengine_iterator.obj \
qiodevice.obj \
+ qdebug.obj \
qtextstream.obj \
qlogging.obj \
qtemporaryfile.obj \
@@ -121,6 +122,7 @@ qfsfileengine.obj: $(CORESRC)\io\qfsfileengine.cpp $(PCH)
qfsfileengine_win.obj: $(CORESRC)\io\qfsfileengine_win.cpp $(PCH)
qfsfileengine_iterator.obj: $(CORESRC)\io\qfsfileengine_iterator.cpp $(PCH)
qiodevice.obj: $(CORESRC)\io\qiodevice.cpp $(PCH)
+qdebug.obj: $(CORESRC)\io\qdebug.cpp $(PCH)
qtextstream.obj: $(CORESRC)\io\qtextstream.cpp $(PCH)
qtemporaryfile.obj: $(CORESRC)\io\qtemporaryfile.cpp $(PCH)
qstandardpaths.obj: $(CORESRC)\io\qstandardpaths.cpp $(PCH)
diff --git a/tools/configure/configure.pro b/tools/configure/configure.pro
index b73a93431d..d3237d472b 100644
--- a/tools/configure/configure.pro
+++ b/tools/configure/configure.pro
@@ -109,6 +109,7 @@ SOURCES = main.cpp configureapp.cpp environment.cpp tools.cpp \
$$QT_SOURCE_TREE/src/corelib/io/qfsfileengine_win.cpp \
$$QT_SOURCE_TREE/src/corelib/io/qfsfileengine_iterator.cpp \
$$QT_SOURCE_TREE/src/corelib/io/qiodevice.cpp \
+ $$QT_SOURCE_TREE/src/corelib/io/qdebug.cpp \
$$QT_SOURCE_TREE/src/corelib/io/qtextstream.cpp \
$$QT_SOURCE_TREE/src/corelib/io/qtemporaryfile.cpp \
$$QT_SOURCE_TREE/src/corelib/io/qstandardpaths.cpp \
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 90981f6624..ddfb1d955b 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Copyright (C) 2013 Intel Corporation
** Contact: http://www.qt-project.org/legal
**
@@ -157,9 +157,7 @@ Configure::Configure(int& argc, char** argv)
dictionary[ "QCONFIG" ] = "full";
dictionary[ "EMBEDDED" ] = "no";
dictionary[ "BUILD_QMAKE" ] = "yes";
- dictionary[ "VCPROJFILES" ] = "yes";
dictionary[ "QMAKE_INTERNAL" ] = "no";
- dictionary[ "PROCESS" ] = "partial";
dictionary[ "WIDGETS" ] = "yes";
dictionary[ "GUI" ] = "yes";
dictionary[ "RTTI" ] = "yes";
@@ -172,7 +170,6 @@ Configure::Configure(int& argc, char** argv)
dictionary[ "SSE4_2" ] = "auto";
dictionary[ "AVX" ] = "auto";
dictionary[ "AVX2" ] = "auto";
- dictionary[ "IWMMXT" ] = "auto";
dictionary[ "SYNCQT" ] = "auto";
dictionary[ "CE_CRT" ] = "no";
dictionary[ "CETEST" ] = "auto";
@@ -239,7 +236,6 @@ Configure::Configure(int& argc, char** argv)
}
dictionary[ "REDO" ] = "no";
- dictionary[ "DEPENDENCIES" ] = "no";
dictionary[ "BUILD" ] = "debug";
dictionary[ "BUILDALL" ] = "auto"; // Means yes, but not explicitly
@@ -253,13 +249,15 @@ Configure::Configure(int& argc, char** argv)
dictionary[ "C++11" ] = "auto";
+ dictionary[ "USE_GOLD_LINKER" ] = "no";
+
dictionary[ "SHARED" ] = "yes";
dictionary[ "ZLIB" ] = "auto";
dictionary[ "PCRE" ] = "auto";
- dictionary[ "ICU" ] = "auto";
+ dictionary[ "ICU" ] = "no";
dictionary[ "ANGLE" ] = "auto";
dictionary[ "DYNAMICGL" ] = "auto";
@@ -270,12 +268,13 @@ Configure::Configure(int& argc, char** argv)
dictionary[ "LIBJPEG" ] = "auto";
dictionary[ "LIBPNG" ] = "auto";
dictionary[ "FREETYPE" ] = "yes";
- dictionary[ "HARFBUZZ" ] = "no";
+ dictionary[ "HARFBUZZ" ] = "qt";
dictionary[ "ACCESSIBILITY" ] = "yes";
dictionary[ "OPENGL" ] = "yes";
dictionary[ "OPENGL_ES_2" ] = "yes";
dictionary[ "OPENVG" ] = "no";
+ dictionary[ "SSL" ] = "auto";
dictionary[ "OPENSSL" ] = "auto";
dictionary[ "DBUS" ] = "auto";
@@ -314,11 +313,6 @@ Configure::Configure(int& argc, char** argv)
Configure::~Configure()
{
- for (int i=0; i<3; ++i) {
- QList<MakeItem*> items = makeList[i];
- for (int j=0; j<items.size(); ++j)
- delete items[j];
- }
}
QString Configure::formatPath(const QString &path)
@@ -431,7 +425,15 @@ void Configure::parseCmdLine()
++i;
if (i == argCount)
break;
- dictionary[ "QREAL" ] = configCmdLine.at(i);
+ QString s = dictionary[ "QREAL" ] = configCmdLine.at(i);
+ if (s == "float") {
+ dictionary[ "QREAL_STRING" ] = "\"float\"";
+ } else {
+ // escape
+ s = s.simplified();
+ s = '"' + s.toLatin1().toPercentEncoding(QByteArray(), "-._~", '_') + '"';
+ dictionary[ "QREAL_STRING" ] = s;
+ }
}
else if (configCmdLine.at(i) == "-release") {
@@ -461,6 +463,10 @@ void Configure::parseCmdLine()
dictionary[ "C++11" ] = "yes";
else if (configCmdLine.at(i) == "-no-c++11")
dictionary[ "C++11" ] = "no";
+ else if (configCmdLine.at(i) == "-use-gold-linker")
+ dictionary[ "USE_GOLD_LINKER" ] = "yes";
+ else if (configCmdLine.at(i) == "-no-use-gold-linker")
+ dictionary[ "USE_GOLD_LINKER" ] = "no";
else if (configCmdLine.at(i) == "-shared")
dictionary[ "SHARED" ] = "yes";
else if (configCmdLine.at(i) == "-static")
@@ -560,9 +566,6 @@ void Configure::parseCmdLine()
else if (configCmdLine.at(i) == "-angle") {
dictionary[ "ANGLE" ] = "yes";
dictionary[ "ANGLE_FROM" ] = "commandline";
- } else if (configCmdLine.at(i) == "-angle-d3d11") {
- dictionary[ "ANGLE" ] = "d3d11";
- dictionary[ "ANGLE_FROM" ] = "commandline";
} else if (configCmdLine.at(i) == "-no-angle") {
dictionary[ "ANGLE" ] = "no";
dictionary[ "ANGLE_FROM" ] = "commandline";
@@ -601,7 +604,7 @@ void Configure::parseCmdLine()
else if (configCmdLine.at(i) == "-no-harfbuzz")
dictionary[ "HARFBUZZ" ] = "no";
else if (configCmdLine.at(i) == "-qt-harfbuzz")
- dictionary[ "HARFBUZZ" ] = "yes";
+ dictionary[ "HARFBUZZ" ] = "qt";
else if (configCmdLine.at(i) == "-system-harfbuzz")
dictionary[ "HARFBUZZ" ] = "system";
@@ -788,12 +791,6 @@ void Configure::parseCmdLine()
imageFormats.contains(configCmdLine.at(i).section('-', 3)))
dictionary[ configCmdLine.at(i).section('-', 3).toUpper() ] = "no";
- // IDE project generation -----------------------------------
- else if (configCmdLine.at(i) == "-no-vcproj")
- dictionary[ "VCPROJFILES" ] = "no";
- else if (configCmdLine.at(i) == "-vcproj")
- dictionary[ "VCPROJFILES" ] = "yes";
-
else if (configCmdLine.at(i) == "-no-incredibuild-xge")
dictionary[ "INCREDIBUILD_XGE" ] = "no";
else if (configCmdLine.at(i) == "-incredibuild-xge")
@@ -858,12 +855,12 @@ void Configure::parseCmdLine()
dictionary[ "AVX2" ] = "no";
else if (configCmdLine.at(i) == "-avx2")
dictionary[ "AVX2" ] = "yes";
- else if (configCmdLine.at(i) == "-no-iwmmxt")
- dictionary[ "IWMMXT" ] = "no";
- else if (configCmdLine.at(i) == "-iwmmxt")
- dictionary[ "IWMMXT" ] = "yes";
- else if (configCmdLine.at(i) == "-no-openssl") {
+ else if (configCmdLine.at(i) == "-no-ssl") {
+ dictionary[ "SSL"] = "no";
+ } else if (configCmdLine.at(i) == "-ssl") {
+ dictionary[ "SSL" ] = "yes";
+ } else if (configCmdLine.at(i) == "-no-openssl") {
dictionary[ "OPENSSL"] = "no";
} else if (configCmdLine.at(i) == "-openssl") {
dictionary[ "OPENSSL" ] = "yes";
@@ -943,19 +940,6 @@ void Configure::parseCmdLine()
else if (configCmdLine.at(i) == "-qmake")
dictionary[ "BUILD_QMAKE" ] = "yes";
- else if (configCmdLine.at(i) == "-dont-process")
- dictionary[ "PROCESS" ] = "no";
- else if (configCmdLine.at(i) == "-process")
- dictionary[ "PROCESS" ] = "partial";
- else if (configCmdLine.at(i) == "-fully-process")
- dictionary[ "PROCESS" ] = "full";
-
- else if (configCmdLine.at(i) == "-no-qmake-deps")
- dictionary[ "DEPENDENCIES" ] = "no";
- else if (configCmdLine.at(i) == "-qmake-deps")
- dictionary[ "DEPENDENCIES" ] = "yes";
-
-
else if (configCmdLine.at(i) == "-qtnamespace") {
++i;
if (i == argCount)
@@ -1645,6 +1629,7 @@ void Configure::applySpecSpecifics()
dictionary[ "OPENGL" ] = "yes";
dictionary[ "OPENGL_ES_2" ] = "yes";
dictionary[ "OPENVG" ] = "no";
+ dictionary[ "SSL" ] = "yes";
dictionary[ "OPENSSL" ] = "no";
dictionary[ "DBUS" ] = "no";
dictionary[ "ZLIB" ] = "qt";
@@ -1652,10 +1637,8 @@ void Configure::applySpecSpecifics()
dictionary[ "ICU" ] = "qt";
dictionary[ "CE_CRT" ] = "yes";
dictionary[ "LARGE_FILE" ] = "no";
- dictionary[ "ANGLE" ] = "d3d11";
+ dictionary[ "ANGLE" ] = "yes";
dictionary[ "DYNAMICGL" ] = "no";
- if (dictionary.value("XQMAKESPEC").startsWith("winphone"))
- dictionary[ "SQL_SQLITE" ] = "no";
} else if (dictionary.value("XQMAKESPEC").startsWith("wince")) {
dictionary[ "STYLE_WINDOWSXP" ] = "no";
dictionary[ "STYLE_WINDOWSVISTA" ] = "no";
@@ -1663,6 +1646,7 @@ void Configure::applySpecSpecifics()
dictionary[ "STYLE_WINDOWSCE" ] = "yes";
dictionary[ "STYLE_WINDOWSMOBILE" ] = "yes";
dictionary[ "OPENGL" ] = "no";
+ dictionary[ "SSL" ] = "no";
dictionary[ "OPENSSL" ] = "no";
dictionary[ "RTTI" ] = "no";
dictionary[ "SSE2" ] = "no";
@@ -1672,15 +1656,12 @@ void Configure::applySpecSpecifics()
dictionary[ "SSE4_2" ] = "no";
dictionary[ "AVX" ] = "no";
dictionary[ "AVX2" ] = "no";
- dictionary[ "IWMMXT" ] = "no";
dictionary[ "CE_CRT" ] = "yes";
dictionary[ "LARGE_FILE" ] = "no";
dictionary[ "ANGLE" ] = "no";
dictionary[ "DYNAMICGL" ] = "no";
- // We only apply MMX/IWMMXT for mkspecs we know they work
if (dictionary[ "XQMAKESPEC" ].startsWith("wincewm")) {
dictionary[ "MMX" ] = "yes";
- dictionary[ "IWMMXT" ] = "yes";
}
} else if (dictionary.value("XQMAKESPEC").startsWith("linux")) { //TODO actually wrong.
//TODO
@@ -1783,6 +1764,9 @@ bool Configure::displayHelp()
desc("C++11", "yes", "-c++11", "Compile Qt with C++11 support enabled.");
desc("C++11", "no", "-no-c++11", "Do not compile Qt with C++11 support enabled.\n");
+ desc("USE_GOLD_LINKER", "yes", "-use-gold-linker", "Link using the GNU gold linker (gcc only).");
+ desc("USE_GOLD_LINKER", "no", "-no-use-gold-linker", "Do not link using the GNU gold linker.\n");
+
desc("SHARED", "yes", "-shared", "Create and use shared Qt libraries.");
desc("SHARED", "no", "-static", "Create and use static Qt libraries.\n");
@@ -1924,12 +1908,13 @@ bool Configure::displayHelp()
desc("FREETYPE", "system","-system-freetype", "Use the libfreetype provided by the system.");
desc("HARFBUZZ", "no", "-no-harfbuzz", "Do not compile in HarfBuzz-NG support.");
- desc("HARFBUZZ", "yes", "-qt-harfbuzz", "(experimental) Use HarfBuzz-NG bundled with Qt\n"
- "to do text shaping. It can still be disabled\n"
- "by setting QT_HARFBUZZ environment variable to \"old\".");
- desc("HARFBUZZ", "system","-system-harfbuzz", "(experimental) Use HarfBuzz-NG from the operating system\n"
+ desc("HARFBUZZ", "qt", "-qt-harfbuzz", "Use HarfBuzz-NG bundled with Qt to do text shaping.\n"
+ "It can still be disabled by setting\n"
+ "the QT_HARFBUZZ environment variable to \"old\".");
+ desc("HARFBUZZ", "system","-system-harfbuzz", "Use HarfBuzz-NG from the operating system\n"
"to do text shaping. It can still be disabled\n"
- "by setting QT_HARFBUZZ environment variable to \"old\".\n");
+ "by setting the QT_HARFBUZZ environment variable to \"old\".\n"
+ "See http://www.harfbuzz.org\n");
if ((platform() == QNX) || (platform() == BLACKBERRY)) {
desc("SLOG2", "yes", "-slog2", "Compile with slog2 support.");
@@ -1943,14 +1928,10 @@ bool Configure::displayHelp()
}
desc("ANGLE", "yes", "-angle", "Use the ANGLE implementation of OpenGL ES 2.0.");
- desc("ANGLE", "d3d11", "-angle-d3d11", "Use the Direct3D 11-based ANGLE implementation of OpenGL ES 2.0.");
desc("ANGLE", "no", "-no-angle", "Do not use ANGLE.\nSee http://code.google.com/p/angleproject/\n");
// Qt\Windows only options go below here --------------------------------------------------------------------------------
desc("\nQt for Windows only:\n\n");
- desc("VCPROJFILES", "no", "-no-vcproj", "Do not generate VC++ .vcproj files.");
- desc("VCPROJFILES", "yes", "-vcproj", "Generate VC++ .vcproj files, only if platform \"win32-msvc.net\".\n");
-
desc("INCREDIBUILD_XGE", "no", "-no-incredibuild-xge", "Do not add IncrediBuild XGE distribution commands to custom build steps.");
desc("INCREDIBUILD_XGE", "yes", "-incredibuild-xge", "Add IncrediBuild XGE distribution commands to custom build steps. This will distribute MOC and UIC steps, and other custom buildsteps which are added to the INCREDIBUILD_XGE variable.\n(The IncrediBuild distribution commands are only added to Visual Studio projects)\n");
@@ -1959,10 +1940,6 @@ bool Configure::displayHelp()
desc("BUILD_QMAKE", "no", "-no-qmake", "Do not compile qmake.");
desc("BUILD_QMAKE", "yes", "-qmake", "Compile qmake.\n");
- desc("PROCESS", "partial", "-process", "Generate only top-level Makefile.");
- desc("PROCESS", "full", "-fully-process", "Generate Makefiles/Project files for the entire Qt\ntree.");
- desc("PROCESS", "no", "-dont-process", "Do not generate Makefiles/Project files.\n");
-
desc( "-qreal [double|float]", "typedef qreal to the specified type. The default is double.\n"
"Note that changing this flag affects binary compatibility.\n");
@@ -1985,6 +1962,8 @@ bool Configure::displayHelp()
desc("AVX", "yes", "-avx", "Compile with use of AVX instructions.");
desc("AVX2", "no", "-no-avx2", "Do not compile with use of AVX2 instructions.");
desc("AVX2", "yes", "-avx2", "Compile with use of AVX2 instructions.\n");
+ desc("SSL", "no", "-no-ssl", "Do not compile support for SSL.");
+ desc("SSL", "yes", "-ssl", "Enable run-time SSL support.");
desc("OPENSSL", "no", "-no-openssl", "Do not compile support for OpenSSL.");
desc("OPENSSL", "yes", "-openssl", "Enable run-time OpenSSL support.");
desc("OPENSSL", "linked","-openssl-linked", "Enable linked OpenSSL support.\n");
@@ -2025,8 +2004,6 @@ bool Configure::displayHelp()
// Qt\Windows CE only options go below here -----------------------------------------------------------------------------
desc("Qt for Windows CE only:\n\n");
- desc("IWMMXT", "no", "-no-iwmmxt", "Do not compile with use of IWMMXT instructions.");
- desc("IWMMXT", "yes", "-iwmmxt", "Do compile with use of IWMMXT instructions. (Qt for Windows CE on Arm only)\n");
desc("CE_CRT", "no", "-no-crt" , "Do not add the C runtime to default deployment rules.");
desc("CE_CRT", "yes", "-qt-crt", "Qt identifies C runtime during project generation.");
desc( "-crt <path>", "Specify path to C runtime used for project generation.\n");
@@ -2143,7 +2120,7 @@ bool Configure::checkAngleAvailability(QString *errorMessage /* = 0 */) const
}
}
- const QString directXLibrary = dictionary["ANGLE"] == "d3d11" ? QStringLiteral("d3d11.lib") : QStringLiteral("d3d9.lib");
+ const QString directXLibrary = QStringLiteral("d3d11.lib"); // Ensures at least the June 2010 DXSDK is present
if (!findFile(directXLibrary)) {
if (errorMessage)
*errorMessage = QString::fromLatin1("The library '%1' could not be found.").arg(directXLibrary);
@@ -2227,8 +2204,6 @@ bool Configure::checkAvailability(const QString &part)
available = findFile("sqlite.h") && findFile("sqlite.lib");
else if (part == "SQL_IBASE")
available = findFile("ibase.h") && (findFile("gds32_ms.lib") || findFile("gds32.lib"));
- else if (part == "IWMMXT")
- available = (dictionary.value("XQMAKESPEC").startsWith("wince"));
else if (part == "OPENGL_ES_2")
available = (dictionary.value("XQMAKESPEC").startsWith("wince"));
else if (part == "SSE2")
@@ -2299,7 +2274,7 @@ bool Configure::checkAvailability(const QString &part)
available = (platform() == QNX || platform() == BLACKBERRY)
&& tryCompileProject("unix/lgmon");
} else if (part == "NEON") {
- available = (dictionary["QT_ARCH"] == "arm") && tryCompileProject("unix/neon");
+ available = dictionary["QT_CPU_FEATURES"].contains("neon");
} else if (part == "FONT_CONFIG") {
available = tryCompileProject("unix/fontconfig");
}
@@ -2402,10 +2377,20 @@ void Configure::autoDetection()
dictionary["AVX"] = checkAvailability("AVX") ? "yes" : "no";
if (dictionary["AVX2"] == "auto")
dictionary["AVX2"] = checkAvailability("AVX2") ? "yes" : "no";
- if (dictionary["IWMMXT"] == "auto")
- dictionary["IWMMXT"] = checkAvailability("IWMMXT") ? "yes" : "no";
if (dictionary["NEON"] == "auto")
dictionary["NEON"] = checkAvailability("NEON") ? "yes" : "no";
+ if (dictionary["SSL"] == "auto") {
+ if (platform() == WINDOWS_RT) {
+ dictionary["SSL"] = "yes";
+ } else {
+ // On Desktop Windows openssl and ssl always have the same value (for now). OpenSSL is
+ // the only backend and if it is available and should be built, that also means that
+ // SSL support in general is enabled.
+ if (dictionary["OPENSSL"] == "auto")
+ dictionary["OPENSSL"] = checkAvailability("OPENSSL") ? "yes" : "no";
+ dictionary["SSL"] = dictionary["OPENSSL"];
+ }
+ }
if (dictionary["OPENSSL"] == "auto")
dictionary["OPENSSL"] = checkAvailability("OPENSSL") ? "yes" : "no";
if (dictionary["DBUS"] == "auto")
@@ -2589,7 +2574,7 @@ bool Configure::verifyConfiguration()
if (dictionary["DYNAMICGL"] == "yes") {
if (dictionary["OPENGL_ES_2"] == "yes" || dictionary["ANGLE"] != "no") {
- cout << "ERROR: Dynamic OpenGL cannot be used together with native Angle (GLES2) builds." << endl;
+ cout << "ERROR: Dynamic OpenGL cannot be used with -angle." << endl;
dictionary[ "DONE" ] = "error";
}
}
@@ -2637,6 +2622,9 @@ void Configure::generateOutputVars()
if (dictionary[ "C++11" ] == "yes")
qtConfig += "c++11";
+ if (dictionary[ "USE_GOLD_LINKER" ] == "yes")
+ qmakeConfig += "use_gold_linker";
+
if (dictionary[ "SHARED" ] == "no")
qtConfig += "static";
else
@@ -2667,13 +2655,12 @@ void Configure::generateOutputVars()
// ANGLE --------------------------------------------------------
if (dictionary[ "ANGLE" ] != "no") {
qtConfig += "angle";
- if (dictionary[ "ANGLE" ] == "d3d11")
- qmakeConfig += "angle_d3d11";
}
// Dynamic OpenGL loading ---------------------------------------
- if (dictionary[ "DYNAMICGL" ] != "no")
+ if (dictionary[ "DYNAMICGL" ] != "no") {
qtConfig += "dynamicgl";
+ }
// Image formates -----------------------------------------------
if (dictionary[ "GIF" ] == "no")
@@ -2701,7 +2688,7 @@ void Configure::generateOutputVars()
else if (dictionary[ "FREETYPE" ] == "system")
qtConfig += "system-freetype";
- if (dictionary[ "HARFBUZZ" ] == "yes")
+ if (dictionary[ "HARFBUZZ" ] == "qt")
qtConfig += "harfbuzz";
else if (dictionary[ "HARFBUZZ" ] == "system")
qtConfig += "system-harfbuzz";
@@ -2831,6 +2818,9 @@ void Configure::generateOutputVars()
qtConfig += "egl";
}
+ if (dictionary[ "SSL" ] == "yes")
+ qtConfig += "ssl";
+
if (dictionary[ "OPENSSL" ] == "yes")
qtConfig += "openssl";
else if (dictionary[ "OPENSSL" ] == "linked")
@@ -3071,8 +3061,6 @@ void Configure::generateCachefile()
moduleStream << " avx";
if (dictionary[ "AVX2" ] == "yes")
moduleStream << " avx2";
- if (dictionary[ "IWMMXT" ] == "yes")
- moduleStream << " iwmmxt";
if (dictionary[ "NEON" ] == "yes")
moduleStream << " neon";
if (dictionary[ "LARGE_FILE" ] == "yes")
@@ -3499,24 +3487,24 @@ void Configure::generateConfigfiles()
tmpStream << endl << "// Compiler sub-arch support" << endl;
if (dictionary[ "SSE2" ] == "yes")
- tmpStream << "#define QT_COMPILER_SUPPORTS_SSE2" << endl;
+ tmpStream << "#define QT_COMPILER_SUPPORTS_SSE2 1" << endl;
if (dictionary[ "SSE3" ] == "yes")
- tmpStream << "#define QT_COMPILER_SUPPORTS_SSE3" << endl;
+ tmpStream << "#define QT_COMPILER_SUPPORTS_SSE3 1" << endl;
if (dictionary[ "SSSE3" ] == "yes")
- tmpStream << "#define QT_COMPILER_SUPPORTS_SSSE3" << endl;
+ tmpStream << "#define QT_COMPILER_SUPPORTS_SSSE3 1" << endl;
if (dictionary[ "SSE4_1" ] == "yes")
- tmpStream << "#define QT_COMPILER_SUPPORTS_SSE4_1" << endl;
+ tmpStream << "#define QT_COMPILER_SUPPORTS_SSE4_1 1" << endl;
if (dictionary[ "SSE4_2" ] == "yes")
- tmpStream << "#define QT_COMPILER_SUPPORTS_SSE4_2" << endl;
+ tmpStream << "#define QT_COMPILER_SUPPORTS_SSE4_2 1" << endl;
if (dictionary[ "AVX" ] == "yes")
- tmpStream << "#define QT_COMPILER_SUPPORTS_AVX" << endl;
+ tmpStream << "#define QT_COMPILER_SUPPORTS_AVX 1" << endl;
if (dictionary[ "AVX2" ] == "yes")
- tmpStream << "#define QT_COMPILER_SUPPORTS_AVX2" << endl;
- if (dictionary[ "IWMMXT" ] == "yes")
- tmpStream << "#define QT_COMPILER_SUPPORTS_IWMMXT" << endl;
+ tmpStream << "#define QT_COMPILER_SUPPORTS_AVX2 1" << endl;
- if (dictionary["QREAL"] != "double")
+ if (dictionary["QREAL"] != "double") {
tmpStream << "#define QT_COORD_TYPE " << dictionary["QREAL"] << endl;
+ tmpStream << "#define QT_COORD_TYPE_STRING " << dictionary["QREAL_STRING"] << endl;
+ }
tmpStream << endl << "// Compile time features" << endl;
@@ -3543,10 +3531,8 @@ void Configure::generateConfigfiles()
if (dictionary["GUI"] == "no") qconfigList += "QT_NO_GUI";
if (dictionary["OPENGL"] == "no") qconfigList += "QT_NO_OPENGL";
if (dictionary["OPENVG"] == "no") qconfigList += "QT_NO_OPENVG";
- if (dictionary["OPENSSL"] == "no") {
- qconfigList += "QT_NO_OPENSSL";
- qconfigList += "QT_NO_SSL";
- }
+ if (dictionary["SSL"] == "no") qconfigList += "QT_NO_SSL";
+ if (dictionary["OPENSSL"] == "no") qconfigList += "QT_NO_OPENSSL";
if (dictionary["OPENSSL"] == "linked") qconfigList += "QT_LINKED_OPENSSL";
if (dictionary["DBUS"] == "no") qconfigList += "QT_NO_DBUS";
if (dictionary["QML_DEBUG"] == "no") qconfigList += "QT_QML_NO_DEBUGGER";
@@ -3673,7 +3659,6 @@ void Configure::displayConfig()
sout << "AVX support................." << dictionary[ "AVX" ] << endl;
sout << "AVX2 support................" << dictionary[ "AVX2" ] << endl;
sout << "NEON support................" << dictionary[ "NEON" ] << endl;
- sout << "IWMMXT support.............." << dictionary[ "IWMMXT" ] << endl;
sout << "OpenGL support.............." << dictionary[ "OPENGL" ] << endl;
sout << "Large File support.........." << dictionary[ "LARGE_FILE" ] << endl;
sout << "NIS support................." << dictionary[ "NIS" ] << endl;
@@ -3685,6 +3670,7 @@ void Configure::displayConfig()
sout << "Glib support................" << dictionary[ "QT_GLIB" ] << endl;
sout << "CUPS support................" << dictionary[ "QT_CUPS" ] << endl;
sout << "OpenVG support.............." << dictionary[ "OPENVG" ] << endl;
+ sout << "SSL support................." << dictionary[ "SSL" ] << endl;
sout << "OpenSSL support............." << dictionary[ "OPENSSL" ] << endl;
sout << "Qt D-Bus support............" << dictionary[ "DBUS" ] << endl;
sout << "Qt Widgets module support..." << dictionary[ "WIDGETS" ] << endl;
@@ -3706,7 +3692,7 @@ void Configure::displayConfig()
sout << " PNG support............." << dictionary[ "PNG" ] << endl;
sout << " FreeType support........" << dictionary[ "FREETYPE" ] << endl;
sout << " Fontconfig support......" << dictionary[ "FONT_CONFIG" ] << endl;
- sout << " HarfBuzz-NG support....." << dictionary[ "HARFBUZZ" ] << endl;
+ sout << " HarfBuzz support........" << dictionary[ "HARFBUZZ" ] << endl;
sout << " PCRE support............" << dictionary[ "PCRE" ] << endl;
sout << " ICU support............." << dictionary[ "ICU" ] << endl;
if ((platform() == QNX) || (platform() == BLACKBERRY)) {
@@ -4175,27 +4161,8 @@ void Configure::buildQmake()
}
-void Configure::appendMakeItem(int inList, const QString &item)
-{
- QString dir;
- if (item != "src")
- dir = "/" + item;
- dir.prepend("/src");
- makeList[inList].append(new MakeItem(sourcePath + dir,
- item + ".pro", buildPath + dir + "/Makefile", Lib));
- if (dictionary[ "VCPROJFILES" ] == "yes") {
- makeList[inList].append(new MakeItem(sourcePath + dir,
- item + ".pro", buildPath + dir + "/" + item + ".vcproj", Lib));
- }
-}
-
void Configure::generateMakefiles()
{
- if (dictionary[ "PROCESS" ] != "no") {
- QString spec = dictionary.contains("XQMAKESPEC") ? dictionary[ "XQMAKESPEC" ] : dictionary[ "QMAKESPEC" ];
- if (spec != "win32-msvc.net" && !spec.startsWith("win32-msvc2") && !spec.startsWith(QLatin1String("wince")) && !spec.startsWith("winphone") && !spec.startsWith("winrt") )
- dictionary[ "VCPROJFILES" ] = "no";
-
QString pwd = QDir::currentPath();
{
QString sourcePathMangled = sourcePath;
@@ -4204,40 +4171,16 @@ void Configure::generateMakefiles()
sourcePathMangled = QFileInfo(sourcePath).path();
buildPathMangled = QFileInfo(buildPath).path();
}
- bool generate = true;
- bool doDsp = (dictionary["VCPROJFILES"] == "yes"
- && dictionary["PROCESS"] == "full");
- while (generate) {
- QStringList args;
- args << buildPath + "/bin/qmake";
-
- if (doDsp) {
- if (dictionary[ "DEPENDENCIES" ] == "no")
- args << "-nodepend";
- args << "-tp" << "vc";
- doDsp = false; // DSP files will be done
- printf("Generating Visual Studio project files...\n");
- } else {
- printf("Generating Makefiles...\n");
- generate = false; // Now Makefiles will be done
- }
- if (dictionary[ "PROCESS" ] == "full")
- args << "-r";
- args << sourcePathMangled;
+ QStringList args;
+ args << buildPath + "/bin/qmake" << sourcePathMangled;
- QDir::setCurrent(buildPathMangled);
- if (int exitCode = Environment::execute(args, QStringList(), QStringList())) {
- cout << "Qmake failed, return code " << exitCode << endl << endl;
- dictionary[ "DONE" ] = "error";
- }
+ QDir::setCurrent(buildPathMangled);
+ if (int exitCode = Environment::execute(args, QStringList(), QStringList())) {
+ cout << "Qmake failed, return code " << exitCode << endl << endl;
+ dictionary[ "DONE" ] = "error";
}
}
QDir::setCurrent(pwd);
- } else {
- cout << "Processing of project files have been disabled." << endl;
- cout << "Only use this option if you really know what you're doing." << endl << endl;
- return;
- }
}
void Configure::showSummary()
diff --git a/tools/configure/configureapp.h b/tools/configure/configureapp.h
index faa9c1eb14..38b3e37799 100644
--- a/tools/configure/configureapp.h
+++ b/tools/configure/configureapp.h
@@ -49,8 +49,6 @@
QT_BEGIN_NAMESPACE
-class MakeItem;
-
class Configure
{
public:
@@ -73,7 +71,6 @@ public:
void generateCachefile();
void displayConfig();
void generateMakefiles();
- void appendMakeItem(int inList, const QString &item);
void generateConfigfiles();
void detectArch();
void generateQConfigPri();
@@ -129,10 +126,6 @@ private:
QStringList qmakeVars;
QStringList qmakeDefines;
- // makeList[0] for qt and qtmain
- // makeList[1] for subdirs and libs
- // makeList[2] for the rest
- QList<MakeItem*> makeList[3];
QStringList qmakeIncludes;
QStringList qmakeLibs;
QString opensslLibs;
@@ -179,22 +172,6 @@ private:
void applySpecSpecifics();
};
-class MakeItem
-{
-public:
- MakeItem( const QString &d, const QString &p, const QString &t, Configure::ProjectType qt )
- : directory( d ),
- proFile( p ),
- target( t ),
- qmakeTemplate( qt )
- { }
-
- QString directory;
- QString proFile;
- QString target;
- Configure::ProjectType qmakeTemplate;
-};
-
class FileWriter : public QTextStream
{
public: