Dynamic linking on WebAssembly involves preloading .so libraries during startup of application. Normally, those plugin preload lists are generating manually by user, which can be tedious. Add a bash script which demonstrates how to call python programs to generate preload lists. Pick-to: 6.9 Change-Id: I0a9869ad0d26606f8b33af2c38248cec3088dd0d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
20 lines
405 B
Bash
20 lines
405 B
Bash
#!/bin/bash
|
|
|
|
TARGET_DIR="@TARGET_DIR@"
|
|
SOURCE_DIR="@SOURCE_DIR@"
|
|
QT_HOST_DIR="@QT_HOST_DIR@"
|
|
QT_WASM_DIR="@QT_WASM_DIR@"
|
|
QT_INSTALL_DIR="@QT_INSTALL_DIR@"
|
|
|
|
python3 \
|
|
"$QT_WASM_DIR/libexec/preload_qt_plugins.py" \
|
|
"$QT_INSTALL_DIR" \
|
|
"$TARGET_DIR"
|
|
|
|
python3 \
|
|
"$QT_WASM_DIR/libexec/preload_qml_imports.py" \
|
|
"$SOURCE_DIR" \
|
|
"$QT_HOST_DIR" \
|
|
"$QT_INSTALL_DIR" \
|
|
"$TARGET_DIR"
|