Introduce kcmutils class

kcmutils now uses a mandatory runtime dependency during build, which for
convenienc is provided by this new class.
This commit is contained in:
Andreas Cord-Landwehr
2022-09-19 20:41:00 +02:00
parent 919f7634dd
commit 0650add995
2 changed files with 20 additions and 1 deletions

12
classes/kcmutils.bbclass Normal file
View File

@@ -0,0 +1,12 @@
# Class for recipes using kcmutils host tools
#
# SPDX-FileCopyrightText: 2022 Andreas Cord-Landwehr <cordlandwehr@kde.org>
#
# SPDX-License-Identifier: MIT
DEPENDS:append = " \
kcmutils \
kcmutils-native \
"
EXTRA_OECMAKE:append = " -DKF5_HOST_TOOLING=${STAGING_DIR_NATIVE}/${libdir}/cmake"

View File

@@ -7,7 +7,7 @@
LICENSE = "LGPL-2.0"
PR = "r0"
DEPENDS = " \
DEPENDS:class-target = " \
qtbase \
libxml2-native \
kitemviews \
@@ -24,11 +24,18 @@ DEPENDS = " \
kpackage-native \
"
DEPENDS:class-native = " \
qtbase-native \
extra-cmake-modules-native \
"
require kcmutils_metainfo.inc
inherit cmake_kf5
inherit ki18n
inherit reuse_license_checksums
EXTRA_OECMAKE:class-native = " -DTOOLS_ONLY=ON "
FILES:${PN} += " \
${libdir}/qml/org/kde/kcmutils/ \
"