From e6a9bc29ab3edb122651d6c88bbc561f363975f3 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Wed, 26 Jul 2023 21:08:32 +0200 Subject: [PATCH] Enable Qt6 CI --- .gitlab-ci.yml | 3 ++ .kde-ci.yml | 36 ++++++++++++++++--- core/backends/lan/lanlinkprovider.cpp | 4 +++ plugins/notifications/notificationsplugin.cpp | 3 +- 4 files changed, 39 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 494d59969..7594d37d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,3 +7,6 @@ include: - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux.yml - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd.yml - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/windows.yml + - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux-qt6.yml + - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd-qt6.yml + - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/windows-qt6.yml diff --git a/.kde-ci.yml b/.kde-ci.yml index aed6522c5..f78410e81 100644 --- a/.kde-ci.yml +++ b/.kde-ci.yml @@ -2,7 +2,7 @@ # SPDX-License-Identifier: CC0-1.0 Dependencies: -- 'on': ['@all'] +- 'on': ['Linux/Qt5', 'FreeBSD/Qt5', 'Windows/Qt5'] 'require': 'frameworks/extra-cmake-modules': '@stable' 'frameworks/kcoreaddons': '@stable' @@ -21,13 +21,39 @@ Dependencies: 'frameworks/kpeople': '@stable' 'frameworks/kwindowsystem': '@stable' 'frameworks/qqc2-desktop-style': '@stable' - -- 'on': ['Linux', 'FreeBSD'] +- 'on': ['Linux/Qt5', 'FreeBSD/Qt5'] 'require': 'frameworks/kpackage': '@stable' 'libraries/pulseaudio-qt': '@stable' 'libraries/plasma-wayland-protocols': '@stable' - -- 'on': ['Linux'] +- 'on': ['Linux/Qt5'] 'require': 'frameworks/modemmanager-qt': '@stable' + +- 'on': ['Linux/Qt6', 'FreeBSD/Qt6', 'Windows/Qt6'] + 'require': + 'frameworks/extra-cmake-modules': '@latest-kf6' + 'frameworks/kcoreaddons': '@latest-kf6' + 'frameworks/kconfig': '@latest-kf6' + 'frameworks/ki18n': '@latest-kf6' + 'frameworks/kitemmodels': '@latest-kf6' + 'frameworks/kcontacts': '@latest-kf6' + 'frameworks/kirigami': '@latest-kf6' + 'frameworks/kdbusaddons': '@latest-kf6' + 'frameworks/knotifications': '@latest-kf6' + 'frameworks/kiconthemes': '@latest-kf6' + 'frameworks/kio': '@latest-kf6' + 'frameworks/kcmutils': '@latest-kf6' + 'frameworks/kservice': '@latest-kf6' + 'frameworks/solid': '@latest-kf6' + 'frameworks/kpeople': '@latest-kf6' + 'frameworks/kwindowsystem': '@latest-kf6' + 'frameworks/qqc2-desktop-style': '@latest-kf6' +- 'on': ['Linux/Qt6', 'FreeBSD/Qt6'] + 'require': + 'frameworks/kpackage': '@latest-kf6' + 'libraries/pulseaudio-qt': '@latest-kf6' + 'libraries/plasma-wayland-protocols': '@latest-kf6' +- 'on': ['Linux/Qt6'] + 'require': + 'frameworks/modemmanager-qt': '@latest-kf6' diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 88c7a248b..10f3302f3 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -18,6 +18,10 @@ #include #endif +#if defined(Q_OS_WIN) || defined(Q_OS_FREEBSD) +#include +#endif + #include #include #include diff --git a/plugins/notifications/notificationsplugin.cpp b/plugins/notifications/notificationsplugin.cpp index d954930ee..bb5d840c2 100644 --- a/plugins/notifications/notificationsplugin.cpp +++ b/plugins/notifications/notificationsplugin.cpp @@ -11,9 +11,8 @@ #include #include -#include - #if !defined(Q_OS_WIN) && !defined(Q_OS_MAC) +#include #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #include #else