summaryrefslogtreecommitdiff
path: root/share/qbs/modules/cpp/gcc.js
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-10-17 10:47:06 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-11-07 15:56:33 +0000
commit8ca922793f2a7a10023784d1c18e4b86f552209d (patch)
tree5150fddc8c4fb0e79fc41f65af210feb41a67c38 /share/qbs/modules/cpp/gcc.js
parent98e4cef3ea23842d6bceb438e0f1f8285a01d979 (diff)
downloadqbs-8ca922793f2a7a10023784d1c18e4b86f552209d.tar.gz
Enable modules to declare target artifacts
Such artifacts appear to rules just like target artifacts of products. This functionality will be useful for auto-generating qbs modules from products. [ChangeLog] Modules can now declare target artifacts using the new filesAreTargets property of the Group item. Task-number: QBS-882 Change-Id: I3bba000be9a1057d9fef01e5576363719ff1f244 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'share/qbs/modules/cpp/gcc.js')
-rw-r--r--share/qbs/modules/cpp/gcc.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/gcc.js b/share/qbs/modules/cpp/gcc.js
index 235769e6a..c2a6180ee 100644
--- a/share/qbs/modules/cpp/gcc.js
+++ b/share/qbs/modules/cpp/gcc.js
@@ -114,6 +114,8 @@ function collectLibraryDependencies(product, isDarwin) {
}
function addExternalLibs(obj) {
+ if (!obj.cpp)
+ return;
function ensureArray(a) {
return Array.isArray(a) ? a : [];
}