diff options
author | Raphael Cotty <raphael.cotty@gmail.com> | 2021-04-29 20:09:35 +0200 |
---|---|---|
committer | Raphaƫl Cotty <raphael.cotty@gmail.com> | 2021-05-07 09:56:17 +0000 |
commit | c2b7dd88e2f3ac5ebed99301ec8f847ffaedcb87 (patch) | |
tree | b46588e97a52a7c02896f5ee60d0c121a57ccf85 /qbs-resources/imports/QbsLibrary.qbs | |
parent | 3972a77103027b8e1a69754f0b21682b653fa2fb (diff) | |
download | qbs-c2b7dd88e2f3ac5ebed99301ec8f847ffaedcb87.tar.gz |
Replace "product" variable by "exportingProduct" in Export items
"product" variable in an Export item will point to the "importingProduct"
in 1.21.
This patch prepares the change by replacing "product" by "importingProduct"
when necessary.
Task-number: QBS-1576
Change-Id: I215d46484754e76771039a750dc4beb33d8a0c9c
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'qbs-resources/imports/QbsLibrary.qbs')
-rw-r--r-- | qbs-resources/imports/QbsLibrary.qbs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qbs-resources/imports/QbsLibrary.qbs b/qbs-resources/imports/QbsLibrary.qbs index 6fc6c7791..4923d89c4 100644 --- a/qbs-resources/imports/QbsLibrary.qbs +++ b/qbs-resources/imports/QbsLibrary.qbs @@ -61,15 +61,15 @@ QbsProduct { Depends { name: "Qt"; submodules: ["core"] } Properties { - condition: product.hasExporter + condition: exportingProduct.hasExporter prefixMapping: [{ - prefix: product.sourceDirectory, - replacement: FileInfo.joinPaths(product.qbs.installPrefix, - product.headerInstallPrefix) + prefix: exportingProduct.sourceDirectory, + replacement: FileInfo.joinPaths(exportingProduct.qbs.installPrefix, + exportingProduct.headerInstallPrefix) }] } - cpp.includePaths: [product.sourceDirectory] - cpp.defines: product.visibilityType === "static" ? ["QBS_STATIC_LIB"] : [] + cpp.includePaths: [exportingProduct.sourceDirectory] + cpp.defines: exportingProduct.visibilityType === "static" ? ["QBS_STATIC_LIB"] : [] } } |