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.
Attachments
For Gerrit Dashboard: QTCREATORBUG-15978 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
166876,2 | API: Expose generated artifacts | master | qbs/qbs | Status: MERGED | +2 | 0 |
167343,5 | QbsProjectManager: Make generated files available in project tree | master | qt-creator/qt-creator | Status: MERGED | -2 | 0 |