aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/jsruntime.pri
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-08-01 16:38:56 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-08-03 08:46:16 +0000
commit5b620ed68909c63f3a5a892577a07f66d35c2923 (patch)
treed42f80a4033b8b49fae775f05585d8707ef3e447 /src/qml/jsruntime/jsruntime.pri
parent1c20a3b8b652a6179438da5c2b3a72183279cdfa (diff)
Add QT_NO_QML_DEBUGGER to MODULE_DEFINES on -no-qml-debug
If -no-qml-debug is set when building QtQml, we have to add QT_NO_QML_DEBUGGER when building application code, because this build option modifies the headers and linking an application built with QML debugging against a Qt built without is crashy. Change-Id: Ib150810f40deb98dcf398e3998401358a25155d9 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/jsruntime.pri')
-rw-r--r--src/qml/jsruntime/jsruntime.pri6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qml/jsruntime/jsruntime.pri b/src/qml/jsruntime/jsruntime.pri
index cf434ee2ed..e72b06359e 100644
--- a/src/qml/jsruntime/jsruntime.pri
+++ b/src/qml/jsruntime/jsruntime.pri
@@ -43,11 +43,7 @@ SOURCES += \
$$PWD/qv4typedarray.cpp \
$$PWD/qv4dataview.cpp
-!contains(QT_CONFIG, no-qml-debug) {
- SOURCES += $$PWD/qv4profiling.cpp
-} else {
- DEFINES += QT_NO_QML_DEBUGGER
-}
+!contains(QT_CONFIG, no-qml-debug): SOURCES += $$PWD/qv4profiling.cpp
HEADERS += \
$$PWD/qv4global_p.h \