Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15978

Qbs: Artifacts of rules are not listed in the project tree

    XMLWordPrintable

Details

    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes