aboutsummaryrefslogtreecommitdiffstats
path: root/sync.profile
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@qt.io>2021-03-01 19:17:20 +1100
committerCraig Scott <craig.scott@qt.io>2021-03-10 23:17:29 +1100
commitc42d558dc9ff89d452546412ee88a16ae1e324e4 (patch)
treeb3bd92ac79e6f5d04643e4868f3c64c303daab31 /sync.profile
parentba9261a3a2fefaa5c6eeb55fa7c8a9e835146677 (diff)
CMake: Fix argument handling in qt_internal_add_qml_module() and friends
If OUTPUT_DIRECTORY is set, all the QML files, as well as the qmldir and the plugin should end up in that directory. We should not confuse that with the install directory, which is separate. For qt_internal_add_qml_module(), we can provide the defaults for both OUTPUT_DIRECTORY and INSTALL_DIRECTORY. For the latter, don't support a separate INSTALL_LOCATION keyword, only use INSTALL_DIRECTORY. With these changes, qtbase no longer has to contain qml-specific logic for these paths in QtPluginHelpers.cmake. Refactor the way arguments are collected and passed through to the internal call to qt6_add_qml_module(). This simplifies the code and also exposed that QML_FILES was not being identified as an allowed argument, TYPEINFO was the wrong type of argument and DO_NOT_INSTALL was not a valid argument (or at least was ignored). The qt_internal_add_module() function was also duplicating logic that was largely already implemented by qt6_add_qml_module(). Rework things a little to remove that duplication. Task-number: QTBUG-88763 Pick-to: 6.1 Change-Id: I629ff63a9f8302c79694970f7b8e664a2b5d587b Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'sync.profile')
0 files changed, 0 insertions, 0 deletions