mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-01-29 21:08:43 +01:00
Enable building of translations for target recipes
This commit is contained in:
@@ -5,10 +5,10 @@ EXTRA_OECMAKE += " \
|
||||
-DBUILD_TESTING=OFF \
|
||||
"
|
||||
|
||||
DEPENDS += "extra-cmake-modules"
|
||||
DEPENDS += "extra-cmake-modules qttools-native"
|
||||
|
||||
# FIXME: using tags gives us translations, translations require lrelease/lconvert host tools, the ecm recipe can't deal with that yet...
|
||||
do_configure_prepend() {
|
||||
# don't bother with translations for host tools
|
||||
do_configure_class-native_prepend() {
|
||||
rm -rf ${S}/po
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ DEPENDS = " \
|
||||
|
||||
SRC_URI = " \
|
||||
git://anongit.kde.org/plasma-framework;nobranch=1 \
|
||||
file://0001-optional-kdoctools.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
commit d3fdf43c075f64610244ba93f2af6a1800b81ce3
|
||||
Author: Volker Krause <vkrause@kde.org>
|
||||
Date: Sun Sep 3 19:15:18 2017 +0200
|
||||
|
||||
Fix build without KDocTools
|
||||
|
||||
Reviewers: #frameworks
|
||||
|
||||
Tags: #frameworks
|
||||
|
||||
Differential Revision: https://phabricator.kde.org/D7680
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b6932baa8..e1760a1c4 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -160,7 +160,9 @@ endif()
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"libplasma5\")
|
||||
if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
|
||||
ki18n_install(po)
|
||||
- kdoctools_install(po)
|
||||
+ if (KF5DocTools_FOUND)
|
||||
+ kdoctools_install(po)
|
||||
+ endif()
|
||||
endif()
|
||||
add_subdirectory(src)
|
||||
|
||||
Reference in New Issue
Block a user