From 0650add995fee3c7effd1bf0dc450ecee8c957d0 Mon Sep 17 00:00:00 2001 From: Andreas Cord-Landwehr Date: Mon, 19 Sep 2022 20:41:00 +0200 Subject: [PATCH] Introduce kcmutils class kcmutils now uses a mandatory runtime dependency during build, which for convenienc is provided by this new class. --- classes/kcmutils.bbclass | 12 ++++++++++++ recipes-kf5/tier3/kcmutils.inc | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 classes/kcmutils.bbclass diff --git a/classes/kcmutils.bbclass b/classes/kcmutils.bbclass new file mode 100644 index 0000000..d7c5af4 --- /dev/null +++ b/classes/kcmutils.bbclass @@ -0,0 +1,12 @@ +# Class for recipes using kcmutils host tools +# +# SPDX-FileCopyrightText: 2022 Andreas Cord-Landwehr +# +# SPDX-License-Identifier: MIT + +DEPENDS:append = " \ + kcmutils \ + kcmutils-native \ +" + +EXTRA_OECMAKE:append = " -DKF5_HOST_TOOLING=${STAGING_DIR_NATIVE}/${libdir}/cmake" diff --git a/recipes-kf5/tier3/kcmutils.inc b/recipes-kf5/tier3/kcmutils.inc index d553ccb..1da4c2d 100644 --- a/recipes-kf5/tier3/kcmutils.inc +++ b/recipes-kf5/tier3/kcmutils.inc @@ -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/ \ "