aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/transformers
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2016-05-10 09:11:46 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2016-05-11 14:30:39 +0000
commit860522715cb851f56cd8b2133bf6035d0558dede (patch)
tree8ab50bb503dd64058680dfd9914b4d4595f7bcec /tests/auto/api/testdata/transformers
parent86572158878c00450e054886a95ecd1d435d957e (diff)
Deprecate the Transformer item.
When dynamic rules were introduced, transformers became second-class citizens. They do not play well with rules, they introduce annoying additional code paths in the implementation and they are plain broken in several aspects. Now that rules with no inputs are supported, we don't need transformers anymore. Task-number: QBS-885 Change-Id: I316d8cffc91bb529f82350edc0b08358a80ae3fd Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/api/testdata/transformers')
-rw-r--r--tests/auto/api/testdata/transformers/transformers.qbs16
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/auto/api/testdata/transformers/transformers.qbs b/tests/auto/api/testdata/transformers/transformers.qbs
index b0884ffa6..1e5a0ec4a 100644
--- a/tests/auto/api/testdata/transformers/transformers.qbs
+++ b/tests/auto/api/testdata/transformers/transformers.qbs
@@ -9,12 +9,17 @@ Project {
name: "HelloWorld"
type: "application"
consoleApplication: true
- files: ["main.cpp"]
+
+ Group {
+ files: ["main.cpp"]
+ fileTags: ["main"]
+ }
Depends { name: "cpp" }
- Transformer {
+ Rule {
// no inputs -> just a generator
+ multiplex: true
Artifact {
filePath: "foo.txt"
fileTags: "text"
@@ -35,7 +40,8 @@ Project {
}
}
- Transformer {
+ Rule {
+ multiplex: true
// no inputs -> just a generator
Artifact {
filePath: "foo.xml"
@@ -60,8 +66,8 @@ Project {
}
}
- Transformer {
- inputs: ["main.cpp"] // will be taken from the source dir
+ Rule {
+ inputs: ["main"]
Artifact {
filePath: "bar.txt"
fileTags: "text"