Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1160

Add module to support QtRemoteObject rep files compilation with repc

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • General
    • None

    Description

      Add a module to compile .rep files to .h files by using repc compiler.

      the module will be automatically pulled when the Qt.remoteobjects dependency is added.

      an example of the module is listed here. The example support only the source side of QtRO module and need to get pulled manually.
       

      import qbs
      import qbs.FileInfo
      Module {
          FileTagger {
              patterns: ["*.rep"]
              fileTags: ["repc-rep"]
          }
          Rule {
              inputs: ["repc-rep"]
              Artifact {
                  filePath: "repc_" + FileInfo.baseName(input.fileName) + "_source.h"
                  fileTags: ["hpp"]
              }
              prepare: {
                  var cmd = new Command();
                  cmd.description = "repc " + input.fileName;
                  cmd.program = "repc.exe"
                  cmd.arguments = ["-i", "rep", "-o", "source", input.filePath, output.filePath];
                  return cmd;
              }
          }
      }

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              ghouss houssem ghiat
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes