summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_module_config.prf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-04-19 19:21:32 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-06-19 16:46:08 +0200
commite6d97f3f77b94268edbe2a651476188cdcc8dc5d (patch)
tree87e6c09e9ee960d0ab0cd695e25591824e1227f6 /mkspecs/features/qt_module_config.prf
parent5290f6df89027374248e8c117ceb6f9165370f60 (diff)
support for private depends in modules
if a module's private headers add additional dependencies, QT_PRIVATE is now the place to declare them. note however, that this may not contain other private headers in turn - that would be much harder to implement, and we want the explicitness anyway. Change-Id: Ic516fcf1a003c95798df4fbe216f92016afaf47e Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'mkspecs/features/qt_module_config.prf')
-rw-r--r--mkspecs/features/qt_module_config.prf10
1 files changed, 10 insertions, 0 deletions
diff --git a/mkspecs/features/qt_module_config.prf b/mkspecs/features/qt_module_config.prf
index 010c5cae43..5e567143fe 100644
--- a/mkspecs/features/qt_module_config.prf
+++ b/mkspecs/features/qt_module_config.prf
@@ -42,6 +42,12 @@ MODULE_PRI = $$MODULE_QMAKE_OUTDIR/mkspecs/modules-inst/qt_$${MODULE}.pri
!build_pass {
# Create a module .pri file
+ !isEmpty(QT_PRIVATE) {
+ contains(QT_PRIVATE, .*-private$):error("QT_PRIVATE may not contain *-private.")
+ module_privdep = "QT.$${MODULE}.private_depends = $$QT_PRIVATE"
+ } else {
+ module_privdep =
+ }
staticlib: \
module_build_type = "QT.$${MODULE}.module_config = staticlib"
else:mac:!static:contains(QT_CONFIG, qt_framework): \
@@ -72,6 +78,7 @@ MODULE_PRI = $$MODULE_QMAKE_OUTDIR/mkspecs/modules-inst/qt_$${MODULE}.pri
"QT.$${MODULE}.plugins = \$\$QT_MODULE_PLUGIN_BASE" \
"QT.$${MODULE}.imports = \$\$QT_MODULE_IMPORT_BASE" \
"QT.$${MODULE}.depends =$$join(MODULE_DEPENDS, " ", " ")" \
+ $$module_privdep \
$$module_build_type \
$$module_config \
"QT.$${MODULE}.DEFINES = $$MODULE_DEFINES" \ # assume sufficient quoting
@@ -110,6 +117,9 @@ if(win32|mac):!wince*:!macx-xcode {
linux*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
+QT += $$QT_PRIVATE
+unset(QT_PRIVATE)
+
!isEmpty(DESTDIR):CONFIG += create_cmake
contains(TARGET, QtAddOn.*): \