summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri
index fe8656acb5..5f54ea8388 100644
--- a/configure.pri
+++ b/configure.pri
@@ -1226,6 +1226,12 @@ defineReplace(qtConfOutputPostProcess_publicPro) {
"QT_RELEASE_DATE = $$config.input.qt_release_date"
}
+ wasm: {
+ qt_emcc_version = $$qtSystemEmccVersion()
+ output += \
+ "QT_EMCC_VERSION = $$qt_emcc_version"
+ }
+
return($$output)
}
@@ -1258,6 +1264,12 @@ defineReplace(qtConfOutputPostProcess_publicHeader) {
!isEmpty(config.input.qt_libinfix): \
output += "$${LITERAL_HASH}define QT_LIBINFIX \"$$eval(config.input.qt_libinfix)\""
+ wasm: {
+ qt_emcc_version = $$qtSystemEmccVersion()
+output += \
+ "$${LITERAL_HASH}define QT_EMCC_VERSION \"$$qt_emcc_version\""
+ }
+
return($$output)
}
@@ -1340,6 +1352,14 @@ defineTest(qtConfReport_buildMode) {
qtConfReportPadded($$1, $$build_mode)
}
+defineTest(qtConfReport_emccVersion) {
+ EMCC_VERSION = $$qtSystemEmccVersion()
+ REQ_VERSION = $$qtEmccRecommendedVersion()
+ !equals(EMCC_VERSION, $$REQ_VERSION) {
+ qtConfAddReport("You should use the recommended Emscripten version $$REQ_VERSION with this Qt. You have $$EMCC_VERSION $$QT_EMCC_VERSION")
+ }
+}
+
# ensure pristine environment for configuration
discard_from($$[QT_HOST_DATA/get]/mkspecs/qconfig.pri)
discard_from($$[QT_HOST_DATA/get]/mkspecs/qmodule.pri)