mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-04-29 09:32:12 +02:00
Summary: Based on Johan's work branch. This also disables unit tests for all frameworks, tests aren't executable for cross-builds anyway, and KConfig tries to run the target kconfig_compiler there. The native version can still further improved by allowing a QtCore-only build of KConfig, as we are only interested in the kconfig_compiler. Reviewers: cordlandwehr Reviewed By: cordlandwehr Differential Revision: https://phabricator.kde.org/D6987
25 lines
800 B
Plaintext
25 lines
800 B
Plaintext
inherit cmake_qt5
|
|
|
|
EXTRA_OECMAKE += " \
|
|
-DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST} \
|
|
-DKF5_HOST_TOOLING=${STAGING_DIR_NATIVE}/usr/lib/cmake \
|
|
-DBUILD_TESTING=OFF \
|
|
"
|
|
|
|
DEPENDS += "ecm"
|
|
|
|
# FIXME: using tags gives us translations, translations require lrelease/lconvert host tools, the ecm recipe can't deal with that yet...
|
|
do_configure_prepend() {
|
|
rm -rf ${S}/po
|
|
}
|
|
|
|
# This function is rather offensive right now, but it seems to work
|
|
do_install_prepend() {
|
|
if [ "0" -ne $(find . -name \*.cmake | grep _usr | wc -l) ]; then
|
|
sed -i 's/\"\/usr\//\"\$\{OE_KF5_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr)
|
|
sed -i 's/\;\/usr\//\;\$\{OE_KF5_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr)
|
|
fi
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|