A QML module can have URI that include dot character. In this change, we refactor the code generator to create the same hierarchies as a Java package structure. Each QML module URI will be appended to the base application package name to form a package that represents the QML module as a Java package. Then the generated code of each QML component will be placed in a single file. This change, also refactor how to generated code should be written in the file, by buffering the generated code to a QByteArray first, and then flushing it into the target file. We also create a marker file inside the directories of each module, so that we can entirely remove the directory and all its files before generating new code during the next build. Fixes: QTBUG-125891 Fixes: QTBUG-125970 Fixes: QTBUG-125971 Change-Id: Iebce6495d9d29af32c3f1f97274c252444d2864e Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 68785b3e59c8a8f4a383051123b87af3d930ff18) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 8d97598e9c2a53a49b1fc053ab8e23bb8d16d8ee) |
||
|---|---|---|
| .. | ||
| androiddeployqt | ||
| androidtestrunner | ||
| bootstrap | ||
| cmake_automoc_parser | ||
| macdeployqt | ||
| moc | ||
| qdbuscpp2xml | ||
| qdbusxml2cpp | ||
| qlalr | ||
| qtpaths | ||
| qvkgen | ||
| rcc | ||
| shared | ||
| syncqt | ||
| tracegen | ||
| tracepointgen | ||
| uic | ||
| windeployqt | ||
| CMakeLists.txt | ||
| configure.cmake | ||