From 4c614d970b1dbf55256f075842d68602e12ecc99 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 17 Nov 2014 11:21:55 +0100 Subject: [PATCH] QmlDesigner: Make it easier to disable QmlDesigner Exporting DO_NOT_BUILD_QMLDESIGNER disables the build of the QmlDesigner plugin. Change-Id: Ia3809268816cd84ef23b872f8df4709e381b3618 Reviewed-by: Eike Ziller --- src/plugins/plugins.pro | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro index 79103a7f068..0c8fe743203 100644 --- a/src/plugins/plugins.pro +++ b/src/plugins/plugins.pro @@ -51,10 +51,16 @@ SUBDIRS = \ beautifier \ qmakeandroidsupport \ winrt \ - qmldesigner \ qmlprofiler \ welcome +DO_NOT_BUILD_QMLDESIGNER = $$(DO_NOT_BUILD_QMLDESIGNER) +isEmpty(DO_NOT_BUILD_QMLDESIGNER) { + SUBDIRS += qmldesigner +} else { + warning("QmlDesigner plugin has been disabled.") +} + isEmpty(QBS_INSTALL_DIR): QBS_INSTALL_DIR = $$(QBS_INSTALL_DIR) exists(../shared/qbs/qbs.pro)|!isEmpty(QBS_INSTALL_DIR): \