Files
meta-kf5/classes/cmake_kf5.bbclass
Volker Krause ee7c296202 Make ECM a dependency for all frameworks
Summary:
Also, add a temporary workaround for ECM requiring lrelease/lconvert host
tools if the KF5 sources include translations (which they do when using
tags). We of course need to fix that eventually, but right now that just
prevents anything from building.

Reviewers: cordlandwehr

Reviewed By: cordlandwehr

Subscribers: #frameworks

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D6976
2017-07-30 13:52:06 +02:00

20 lines
674 B
Plaintext

inherit cmake_qt5
EXTRA_OECMAKE += " \
-DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST}"
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
}