Files
meta-kf5/classes/cmake_kf5.bbclass
Volker Krause e29f976fac Add KConfig recipe
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
2017-07-30 14:12:32 +02:00

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"