Add qml_module to builder and create qmldir and QML module from build script options #434
Labels
🔨 build system
Issues related to integrating CXX-Qt into CMake/Cargo
⬆️ feature
New feature or request
Milestone
Register the qml_module in the build script as we need to produce proper QML modules.
Note that we need to generate a
qmldir
, so for basic ones this will just include the plugin name etc, but if there are QML files included in that module they need to be listed in theqmldir
too, so we need this to occur in the build script.So
qml_module
to CxxQtBuilderqml_uri
andqml_version
fromqobject
macroqml_element
to theqobject
macroThis could then look like
Original description
It would be helpful to only need to specify the QML URI and version once in a central place, for example
build.rs
, to avoid repeating this information for multiple QObjects. QObjects exposed to QML could then be indicated with#[cxxqt::qobject(qml_element)]
.#428 (comment)
The text was updated successfully, but these errors were encountered: