Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
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:
- QRC copies resources to a qt_resources/ dir (on the host/build machine), instead of creating qrc_.o files
- The emscripten file packing feature is used to populate the filesystem: "em++ --preload-file qt_resources/"
Attachments
Issue Links
- is required for
-
QTBUG-106637 Qt 6.5 WebAssembly Dev Roadmap
- Closed
- mentioned in
-
Page Loading...
Gerrit Reviews
For Gerrit Dashboard: QTBUG-74568 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
460280,1 | wasm: preload resources for WASM projects | dev | qt/qtbase | Status: NEW | 0 | 0 |