[kguiaddons] Control QML support, fix install locations#51381
Conversation
|
Hi there! Thanks for the fix! Can you explain how this actually fixes it? (It's not obvious how controlling this dependency fixes putting the bits in the wrong place) |
BillyONeal
left a comment
There was a problem hiding this comment.
I still would like it on record how this fixes it but I'm going to merge this anyway because even if it doesn't fix the CI problem it's an improvement anyway.
| OPTIONS | ||
| -DBUILD_TESTING=OFF | ||
| -DBUILD_PYTHON_BINDINGS=OFF | ||
| -DKDE_INSTALL_QMLDIR=qml |
There was a problem hiding this comment.
@BillyONeal - the QML file location is fixed here (-DKDE_INSTALL_QMLDIR): this matches the other KDE ports.
| "default-features": false | ||
| "default-features": false, | ||
| "features": [ | ||
| "gui" |
There was a problem hiding this comment.
This fixes the build with vcpkg install qtbase[core] kguiaddons - Qt6Gui is a required dependency in the kguiaddons CMakeLists.txt file: https://github.com/KDE/kguiaddons/blob/bfc94ffa0487702052b5e0ef9adf740cac349386/CMakeLists.txt#L43
| file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n") | ||
|
|
||
| if(NOT "qml" IN_LIST FEATURES) | ||
| list(APPEND FEATURE_OPTIONS "-DCMAKE_DISABLE_FIND_PACKAGE_Qt6Qml=ON") |
There was a problem hiding this comment.
kguiaddons switches on qml support based on whether the Qt6::Qml target is found: https://github.com/KDE/kguiaddons/blob/bfc94ffa0487702052b5e0ef9adf740cac349386/src/CMakeLists.txt#L243-L245
./vcpkg x-add-version --alland committing the result.