Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74568

Resource system backend for Qt on WebAssembly

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Core: Resource System
    • None

    Description

      It does not make much sense to pipe (large) resource sets though the Wasm compilers.

      Instead, resource files can be copied to the in-memory file system provided by emscripten, where they can be accessed using standard file API. The Qt resource system will then map qrc paths to filesystem paths, e.g. ":/foo" -> "/qt_resources/foo".

      Build flow:

      1. QRC copies resources to a qt_resources/ dir (on the host/build machine), instead of creating qrc_.o files
      2. The emscripten file packing feature is used to populate the filesystem: "em++ --preload-file qt_resources/"

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-74568
          # Subject Branch Project Status CR V

          Activity

            People

              piwierci Piotr Wierciński
              sorvig Morten Sørvig
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Tor Arne Vestbø Tor Arne Vestbø
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change