summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt.pro6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt.pro b/qt.pro
index f1274801..be193c55 100644
--- a/qt.pro
+++ b/qt.pro
@@ -13,6 +13,12 @@ defineReplace(moduleName) {
# Arguments: module name, [mandatory deps], [optional deps], [project file]
defineTest(addModule) {
+ for(d, $$list($$2 $$3)): \
+ !contains(MODULES, $$d): \
+ error("'$$1' depends on not (yet) declared '$$d'.")
+ MODULES += $$1
+ export(MODULES)
+
contains(QT_SKIP_MODULES, $$1): return(false)
!isEmpty(QT_BUILD_MODULES):!contains(QT_BUILD_MODULES, $$1): return(false)
mod = $$moduleName($$1)