Merge qtwaylandscanner-kde into kwayland-server package

This simplifies maintenance during updates, because with every Plasma
update also the qtwaylandscanner_kde must updated.
This commit is contained in:
Andreas Cord-Landwehr
2022-06-06 10:49:01 +02:00
parent 1081b5bcbe
commit 7de7048149
4 changed files with 33 additions and 42 deletions

View File

@@ -1,24 +1,49 @@
# SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
# SPDX-FileCopyrightText: 2022 Andreas Cord-Landwehr <cordlandwehr@kde.org>
#
# SPDX-License-Identifier: MIT
DESCRIPTION = "KWayland Server"
HOMEPAGE = ""
HOMEPAGE = "https://invent.kde.org/plasma/kwayland-server/"
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = " \
file://LICENSES/LGPL-2.1-only.txt;md5=fabba2a3bfeb22a6483d44e9ae824d3f \
"
PR = "r0"
DEPENDS = " \
inherit cmake_qt5
inherit pkgconfig
# TODO skip inherit of cmake_plasma for now because to leads to build errors for native package
DEPENDS:class-target = " \
qtbase \
qtwayland \
qtwayland-native \
kwayland \
plasma-wayland-protocols \
qtwaylandscanner-kde-native \
kwayland-server-native \
wayland \
wayland-protocols \
"
inherit cmake_plasma
DEPENDS:class-native = " \
qtbase-native \
extra-cmake-modules-native \
"
SRC_URI:append:class-native = " \
file://fake_project_root.patch \
"
OECMAKE_SOURCEPATH:class-native = "${S}/src/tools"
do_install:class-native() {
install -d ${D}/${bindir}
install ${B}/bin/qtwaylandscanner_kde ${D}/${bindir}
}
FILES:${PN}-dev += " \
${datadir}/qlogging-categories5/* \
"
BBCLASSEXTEND = "native"

View File

@@ -2,16 +2,18 @@ diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt
index 5eea6e49..b78afb7b 100644
--- a/src/tools/CMakeLists.txt
+++ b/src/tools/CMakeLists.txt
@@ -1,3 +1,22 @@
@@ -1,3 +1,24 @@
+cmake_minimum_required(VERSION 3.16)
+set(QT_MIN_VERSION "5.15.0")
+project(QtWaylandScannerKde)
+set(CMAKE_C_STANDARD 99)
+set(CMAKE_CXX_STANDARD 17)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+
+# ECM setup
+set(KDE_COMPILERSETTINGS_LEVEL "5.82")
+include(FeatureSummary)
+find_package(ECM ${KF5_MIN_VERSION} NO_MODULE REQUIRED)
+find_package(ECM 5.82 NO_MODULE REQUIRED)
+set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
+
+include(CheckIncludeFile)

View File

@@ -1,31 +0,0 @@
# SPDX-FileCopyrightText: 2018-2020 Volker Krause <vkrause@kde.org>
#
# SPDX-License-Identifier: MIT
DESCRIPTION = "qtwaylandscanner temporary fork (really KWayland Server repository subset)"
HOMEPAGE = "https://invent.kde.org/plasma/kwayland-server/"
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://LICENSES/LGPL-2.1-only.txt;md5=fabba2a3bfeb22a6483d44e9ae824d3f"
PR = "r0"
BBCLASSEXTEND = "native nativesdk"
DEPENDS = " \
qtbase \
extra-cmake-modules \
"
SRC_URI = " \
git://invent.kde.org/plasma/kwayland-server;nobranch=1;protocol=https \
file://fake_project_root.patch \
"
S = "${WORKDIR}/git"
OECMAKE_SOURCEPATH = "${S}/src/tools"
inherit cmake_qt5
do_install() {
install -d ${D}/${bindir}
cp ${B}/qtwaylandscanner_kde ${D}/${bindir}
}

View File

@@ -1,5 +0,0 @@
# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: CC0-1.0
require ${PN}.inc
SRCREV = "v${PV}"