maliit-framework-qt6: fix QA buildpath issues

This commit is contained in:
Andreas Cord-Landwehr
2024-11-19 20:46:09 +01:00
parent a4cacd5cc7
commit f781f1c655

View File

@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 Andreas Cord-Landwehr <cordlandwehr@kde.org>
# SPDX-FileCopyrightText: 2020-2024 Andreas Cord-Landwehr <cordlandwehr@kde.org>
# SPDX-FileCopyrightText: 2024 Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
#
# SPDX-License-Identifier: MIT
@@ -40,6 +40,22 @@ EXTRA_OECMAKE += " \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
"
# workaround for leaked host paths by glib-genmarshal
do_compile:prepend() {
sed -i 's:${S}::g' ${B}/maliitmarshallers.c
sed -i 's:${S}::g' ${B}/maliitmarshallers.h
}
# workaround for leaked host paths to CMake imports
do_install:append() {
if [ "0" -ne $(find ${D} \( -name "*.cmake" \) | wc -l) ]; then
find ${D} \( -name "*.cmake" \) -exec \
sed -i -e 's|${RECIPE_SYSROOT}/usr|\$\{_IMPORT_PREFIX\}|g' \
{} \;
fi
}
FILES:${PN} += " \
${libdir}/plugins \
${datadir}/dbus-1/ \