mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-09-11 21:49:34 +02:00
Port to new desktoptojson crosscompilation behavior
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
# Class for recipes using kcoreaddons host tools
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
|
||||
# SPDX-FileCopyrightText: 2022 Andreas Cord-Landwehr <cordlandwehr@kde.org>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
do_compile:prepend() {
|
||||
# desktoptojson needs to find installed service type files
|
||||
export XDG_DATA_DIRS=${STAGING_DATADIR}:$XDG_DATA_DIRS
|
||||
}
|
||||
|
||||
DEPENDS += " \
|
||||
DEPENDS:append = " \
|
||||
kcoreaddons \
|
||||
kcoreaddons-native \
|
||||
"
|
||||
|
||||
EXTRA_OECMAKE += " -DKF5_HOST_TOOLING=${STAGING_DIR_NATIVE}/${libdir}/cmake"
|
||||
# for crosscompilation desktoptojson uses CMAKE_SYSROOT as root path for locating files
|
||||
EXTRA_OECMAKE:append = " \
|
||||
-DKF5_HOST_TOOLING=${STAGING_DIR_NATIVE}/${libdir}/cmake \
|
||||
-DCMAKE_SYSROOT=${RECIPE_SYSROOT} \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user