This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| # build_qul_from_source.ps1 | |
| Interactive PowerShell script for building [Qt for MCUs](https://doc.qt.io/QtForMCUs/) (QUL) from sources, optionally installing the result as a self-contained custom QUL tree, and optionally flashing a demo/example to target hardware. | |
| Based on [Building QUL from source](https://doc.qt.io/QtForMCUs/qtul-building-from-sources.html). | |
| ## What it does | |
| - Prompts for all required CMake variables (`QUL_ROOT`, `QUL_TOOLS`, platform, toolchain, board SDK, etc.) | |
| - Saves your configuration to `Build-QUL.config.json` for re-use | |
| - On subsequent runs, lets you edit specific fields via a numbered menu | |
| - Runs `cmake configure` + `cmake --build` | |
| - (Optional) Copies the original `QUL_ROOT` to `CMAKE_INSTALL_PREFIX` (seeds host tools + CMake config), then runs `cmake --install` to overlay the rebuilt libraries — producing a custom QUL tree that applications can consume directly |