diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-10-17 10:47:06 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-11-07 15:56:33 +0000 |
commit | 8ca922793f2a7a10023784d1c18e4b86f552209d (patch) | |
tree | 5150fddc8c4fb0e79fc41f65af210feb41a67c38 /share/qbs/modules/cpp/gcc.js | |
parent | 98e4cef3ea23842d6bceb438e0f1f8285a01d979 (diff) | |
download | qbs-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.js | 2 |
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 : []; } |