Skip to content

0.27.0: rules-qml, QML applications on rules-qt

Latest

Choose a tag to compare

@speak-agent speak-agent released this 24 Nov 01:55
c874271
  • New member rules-qml (mcpp.rules.qml): QML applications. For each QML module the project states, the rule declares the chain qt_add_qml_module runs as actions -- moc --output-json, qmltyperegistrar, qmlcachegen (per file, with its loader), rcc, qsb for shaders, qmllint as a check -- so the module is compiled into the executable and loadFromModule finds it. It places the Qt QML modules the program imports beside it, found from the import statements and the SDK's qmldir and .qml files (styles, imports and import_paths shape the set), and writes a qt.conf (Prefix = ., Qml2Imports = qml) unless the project has its own. Implies rules-qt; see docs/rules-qml.md.
  • rules-qt gains, off by default and without a change to an existing project's directives (a golden of the 0.26 output is a test): moc_json, moc_includes, i18n.extensions and compile_ex.
  • A pack that carries the libraries the QML plugins load needs mcpp 2026.11.23.1 (mcpp#1011). The engine floor of the package stays 2026.10.30.1: the build runs on it.
  • On macOS mcpp pack does not stage Qt's frameworks yet, as for rules-qt.