Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
-
d21bfee66 (dev), 382ee7e20 (dev)
Description
The qtbase/util/wasm/preload/preload_qml_imports.py script calls qmlimportscanner to get a list of QML imports to preload. It then needs to determine the dependencies of each plugin in order to add those as well to the preload list.
This is currently implemented by scanning the plugin binaries for strings with the ".so" ending, see find_dependencies(). A better approach would be to parse the wasm modules and get dependencies in a structured way.
Emscripten stores this information in a custom section in the wasm binary named "dynlink.0" . We should be able to get to this section using a wasm parsing library (or implement a simple parser by hand since we only need one section), and then extract the dependencies.
Attachments
For Gerrit Dashboard: QTBUG-121833 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
538084,2 | wasm: Fix duplication of .so files in preload_qml_imports.py | dev | qt/qtbase | Status: MERGED | +2 | 0 |
541554,3 | wasm: Parse wasm binaries to get dependencies | dev | qt/qtbase | Status: MERGED | +2 | 0 |