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
This commit is contained in:
Volker Krause
2017-07-29 17:30:00 +02:00
parent dc105bf912
commit ee7c296202
2 changed files with 9 additions and 2 deletions

View File

@@ -2,7 +2,14 @@ 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