Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.0.0-rc1
-
bfd0827811a3104c1939fbe2cd84254a8901d433
Description
import qbs import qbs.TextFile CppApplication { type: "application" files: "main.cpp" Rule { inputs: ["qbs"] multiplex: true outputFileTags: ["cpp"] outputArtifacts: [ { fileTags: "cpp", filePath: "foo.cpp", } ] prepare: { var cmd = new JavaScriptCommand(); cmd.description = "Generating " + output.filePath; cmd.sourceCode = function() { new TextFile(output.filePath, TextFile.WriteOnly); } return cmd; } } }
foo.cpp should be listed in the project tree, at least after it is generated.