summaryrefslogtreecommitdiffstats
path: root/tools/configure/configureapp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure/configureapp.cpp')
-rw-r--r--tools/configure/configureapp.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 9188b9a257..56d8d9f8c5 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -2305,6 +2305,11 @@ void Configure::generateOutputVars()
qtConfig += "release";
}
+ if (dictionary[ "SHARED" ] == "no")
+ qtConfig += "static";
+ else
+ qtConfig += "shared";
+
if (dictionary[ "WIDGETS" ] == "no")
qtConfig += "no-widgets";
@@ -2937,10 +2942,6 @@ void Configure::generateQConfigPri()
configStream << "CONFIG+= ";
configStream << dictionary[ "BUILD" ];
- if (dictionary[ "SHARED" ] == "yes")
- configStream << " shared";
- else
- configStream << " static";
if (dictionary[ "LTCG" ] == "yes")
configStream << " ltcg";
@@ -3094,12 +3095,13 @@ void Configure::generateConfigfiles()
}
tmpStream << endl;
- if (dictionary[ "SHARED" ] == "yes") {
- tmpStream << "#ifndef QT_DLL" << endl;
- tmpStream << "#define QT_DLL" << endl;
- tmpStream << "#endif" << endl;
+ if (dictionary[ "SHARED" ] == "no") {
+ tmpStream << "/* Qt was configured for a static build */" << endl
+ << "#if !defined(QT_SHARED) && !defined(QT_STATIC)" << endl
+ << "# define QT_STATIC" << endl
+ << "#endif" << endl
+ << endl;
}
- tmpStream << endl;
tmpStream << "/* License information */" << endl;
tmpStream << "#define QT_PRODUCT_LICENSEE \"" << licenseInfo[ "LICENSEE" ] << "\"" << endl;
tmpStream << "#define QT_PRODUCT_LICENSE \"" << dictionary[ "EDITION" ] << "\"" << endl;