aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/plugins.pro2
-rw-r--r--src/qml/debugger/debugger.pri2
-rw-r--r--tests/auto/qml/qml.pro2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro
index 664a457608..273407c19d 100644
--- a/src/plugins/plugins.pro
+++ b/src/plugins/plugins.pro
@@ -1,2 +1,2 @@
TEMPLATE = subdirs
-SUBDIRS += qmltooling
+!contains(QT_CONFIG, no-qml-debug):SUBDIRS += qmltooling
diff --git a/src/qml/debugger/debugger.pri b/src/qml/debugger/debugger.pri
index 77a3ba6490..4021350878 100644
--- a/src/qml/debugger/debugger.pri
+++ b/src/qml/debugger/debugger.pri
@@ -1,3 +1,5 @@
+contains(QT_CONFIG, no-qml-debug):DEFINES += QT_NO_QML_DEBUGGER
+
SOURCES += \
$$PWD/qqmldebugservice.cpp \
$$PWD/qqmlprofilerservice.cpp \
diff --git a/tests/auto/qml/qml.pro b/tests/auto/qml/qml.pro
index 6f1bea6d92..2ca3e42991 100644
--- a/tests/auto/qml/qml.pro
+++ b/tests/auto/qml/qml.pro
@@ -71,7 +71,7 @@ qtHaveModule(widgets) {
SUBDIRS += $$PUBLICTESTS
SUBDIRS += $$METATYPETESTS
-!winrt: SUBDIRS += debugger # no QProcess on winrt
+!winrt:!contains(QT_CONFIG, no-qml-debug): SUBDIRS += debugger # no QProcess on winrt
contains(QT_CONFIG, private_tests) {
SUBDIRS += $$PRIVATETESTS