aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-08-21 13:46:50 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-08-24 11:19:15 +0000
commit7f424ec15884e23ef56c7781f0a8de02ed016ae1 (patch)
tree096c118e13a5fa9b9cdbf6fa7bab8369be8354e0 /doc
parent450ccbdf8b9981d91980fd8917f428949129559d (diff)
Introduce an "exportingProduct" variable
... for use in Export items. It's not obvious that "product" refers to the exporting product, and in fact setting it up this way pollutes the scope for modules loaded via Export items. Therefore, we introduce exportingProduct for symmetry with importingProduct. [ChangeLog] Deprecate the product variable inside Export items in favor of the new exportingProduct variable. Task-number: QBS-1576 Change-Id: Ie91752d1ae2160cb7701ae0167bccde0cd5c0e5d Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/items/language/export.qdoc12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/reference/items/language/export.qdoc b/doc/reference/items/language/export.qdoc
index 433b4ca83..2bf68b5ca 100644
--- a/doc/reference/items/language/export.qdoc
+++ b/doc/reference/items/language/export.qdoc
@@ -83,15 +83,15 @@
}
\endcode
- In contrast to Module items, \c{product} within Export items refers to the product which defines
- the Export item. Use the \c{importingProduct} variable to refer to the product that
- pulls in the resulting module:
+ Within an Export item, you can use the \c exportingProduct variable to refer to
+ the product which defines the Export item. Use the \c{importingProduct} variable
+ to refer to the product that pulls in the resulting module:
\code
Product {
name: "D"
Export {
Depends { name: "cpp" }
- cpp.includePaths: [product.sourceDirectory, importingProduct.buildDirectory]
+ cpp.includePaths: [exportingProduct.sourceDirectory, importingProduct.buildDirectory]
}
}
\endcode
@@ -111,9 +111,9 @@
\code
Export {
Depends { name: cpp" }
- cpp.includePaths: [product.sourceDirectory]
+ cpp.includePaths: [exportingProduct.sourceDirectory]
prefixMapping: [{
- prefix: product.sourceDirectory,
+ prefix: exportingProduct.sourceDirectory,
replacement: FileInfo.joinPaths(qbs.installPrefix, "include")
}]
}