diff options
Diffstat (limited to 'tests/auto/blackbox/testdata')
-rw-r--r-- | tests/auto/blackbox/testdata/changed-files/project.qbs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/changed-files/project.qbs b/tests/auto/blackbox/testdata/changed-files/project.qbs index 7fedd66d5..82411a659 100644 --- a/tests/auto/blackbox/testdata/changed-files/project.qbs +++ b/tests/auto/blackbox/testdata/changed-files/project.qbs @@ -1,5 +1,29 @@ import qbs +import qbs.TextFile CppApplication { + type: ["application", "stuff"] files: ["file1.cpp", "file2.cpp", "main.cpp"] + + Rule { + inputs: ["cpp"] + outputFileTags: ["stuff"] + outputArtifacts: { + return [{ + filePath: input.completeBaseName + ".stuff", + fileTags: ["stuff"] + }]; + } + prepare: { + var cmd = new JavaScriptCommand(); + cmd.description = "creating " + output.fileName + cmd.sourceCode = function() { + var f = new TextFile(output.filePath, TextFile.WriteOnly); + f.write("crazy stuff"); + f.close(); + } + return cmd; + } + } } + |