QmlModule in cxx-qt-build should use their own isolated cc::Build #1065
Labels
🔨 build system
Issues related to integrating CXX-Qt into CMake/Cargo
🤔 discussion
Feedback welcome
🥳🎉 1.0
This issue is part of stabilization for 1.0 release
As we move to building QmlModule with their include paths being added #856 we need to avoid different QmlModule causing collisions between each other.
At the moment we have one large cc::Build that is used for the main CxxQtBuilder and any QmlModules, any files or include paths that are added to the cc::Build are then common everywhere as the same cc::Build is shared.
Instead we need to adjust our API so that QmlModules can also specify things like C++ source files to compile, C++ header files to give to moc, cc_builder closures etc.
Consider if we need a whole refactor of the public build API so that QmlModules become a sub / nested build.
Eg
This could then mean that one crate could potentially be one Qml Module or a library or an executable etc.
The text was updated successfully, but these errors were encountered: