diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-04-29 14:05:49 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-05-03 13:34:11 +0000 |
commit | 11c2b638fbc3ae5ea682c97ec009e81adb2f6c95 (patch) | |
tree | f9adbf0d5c1df30aa3162af3e3b2051628bb9c2b /tests/auto/blackbox/testdata/importing-product | |
parent | 5c9171ca2ef5bc538967c29246d5f35bf01cfea7 (diff) |
Add an "importingProduct" variable to the Export item.
It was an oversight that we did not have this before.
Change-Id: I6347be273273da301ca1ee3e23ff2ddda0a1553a
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests/auto/blackbox/testdata/importing-product')
3 files changed, 41 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/importing-product/header.h.in b/tests/auto/blackbox/testdata/importing-product/header.h.in new file mode 100644 index 000000000..237c8ce18 --- /dev/null +++ b/tests/auto/blackbox/testdata/importing-product/header.h.in @@ -0,0 +1 @@ +int main() {} diff --git a/tests/auto/blackbox/testdata/importing-product/importing-product.qbs b/tests/auto/blackbox/testdata/importing-product/importing-product.qbs new file mode 100644 index 000000000..e54e8cdbd --- /dev/null +++ b/tests/auto/blackbox/testdata/importing-product/importing-product.qbs @@ -0,0 +1,39 @@ +import qbs +import qbs.File + +Project { +Product { + name: "dep" + + Export { + Depends { name: "cpp" } + cpp.includePaths: [importingProduct.buildDirectory + "/random_dir"] + + Rule { + inputs: ["hpp_in"] + Artifact { + filePath: product.buildDirectory + "/random_dir/" + input.completeBaseName + fileTags: ["hpp"] + } + prepare: { + var cmd = new JavaScriptCommand(); + cmd.description = "Copying file"; + cmd.sourceCode = function() { + File.copy(input.filePath, output.filePath); + } + return [cmd]; + } + } + } +} + +CppApplication { + name: "theProduct" + Depends { name: "dep" } + Group { + files: ["header.h.in"] + fileTags: ["hpp_in"] + } + files: ["main.cpp"] +} +} diff --git a/tests/auto/blackbox/testdata/importing-product/main.cpp b/tests/auto/blackbox/testdata/importing-product/main.cpp new file mode 100644 index 000000000..901face2d --- /dev/null +++ b/tests/auto/blackbox/testdata/importing-product/main.cpp @@ -0,0 +1 @@ +#include <header.h> |