Files
meta-kf5/classes/cmake_kf5.bbclass
Volker Krause 321066379c Move handling of cmake/qmake dev files to the KF5 class
Reviewers: cordlandwehr

Reviewed By: cordlandwehr

Differential Revision: https://phabricator.kde.org/D7019
2017-07-31 20:47:39 +02:00

30 lines
902 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"
FILES_${PN}-dev += " \
${libdir}/cmake/KF5*/*.cmake \
${prefix}/mkspecs/modules/qt_*.pri \
"