Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-2819

Add command line option to generate JSON resource file for Qt Ultralite

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • QSR 2.2
    • QSR 2.2
    • Tooling
    • None

    Description

      Implement a new feature in QtSafeLayoutTool to generate a JSON file containing metadata about generated resources. The Qt Ultralite will use this JSON file to process the generated files in the resource compiler.

      The QUL resource system uses following format in the resource file and it is preferred to use the same syntax in Qt Safe Layout Tool:

      json
      [
          {
              "file_type": "Image",
              "resource_path": "path/to/file.srb"
          },
          {
              "file_type": "Binary",
              "resource_path": "path/to/file.srt"
          }
      ]
      

      Implementation Details

      • JSON file should only include bitmaps, text layouts, and font files
      • File paths should use native path separators
      • JSON file should be generated in the same directory as the resource file
      • JSON file generation should be optional and controlled via CMake option

      Attachments

        For Gerrit Dashboard: QSR-2819
        # Subject Branch Project Status CR V

        Activity

          People

            teemu.holappa Teemu Holappa
            teemu.holappa Teemu Holappa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change