forked from qt-creator/qt-creator
Do not build QmlDesigner tests when the plugin is disabled
Change-Id: Iaf7e06be6b81040c36726aa76923b285e2402aef Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
0d43ce1373
commit
5e8ec97d69
@@ -1,7 +1,6 @@
|
|||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
SUBDIRS += \
|
SUBDIRS += \
|
||||||
qmldesigner \
|
|
||||||
qmleditor \
|
qmleditor \
|
||||||
qmljssimplereader \
|
qmljssimplereader \
|
||||||
qmlprojectmanager \
|
qmlprojectmanager \
|
||||||
@@ -9,3 +8,14 @@ SUBDIRS += \
|
|||||||
reformatter \
|
reformatter \
|
||||||
qrcparser \
|
qrcparser \
|
||||||
persistenttrie
|
persistenttrie
|
||||||
|
|
||||||
|
DO_NOT_BUILD_QMLDESIGNER = $$(DO_NOT_BUILD_QMLDESIGNER)
|
||||||
|
isEmpty(DO_NOT_BUILD_QMLDESIGNER):qtHaveModule(quick-private) {
|
||||||
|
SUBDIRS += qmldesigner
|
||||||
|
} else {
|
||||||
|
!qtHaveModule(quick-private) {
|
||||||
|
warning("QmlDesigner plugin has been disabled since the Qt Quick module is not available.")
|
||||||
|
} else {
|
||||||
|
warning("QmlDesigner plugin has been disabled since DO_NOT_BUILD_QMLDESIGNER is set.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user