summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/qt/Config.in7
-rw-r--r--package/qt/qt.mk2
2 files changed, 9 insertions, 0 deletions
diff --git a/package/qt/Config.in b/package/qt/Config.in
index 0a21e93c1..93751cd3a 100644
--- a/package/qt/Config.in
+++ b/package/qt/Config.in
@@ -28,6 +28,13 @@ config BR2_PACKAGE_QT_DEMOS
help
If unsure, say N.
+config BR2_PACKAGE_QT_TRANSLATION_FILES
+ bool "Install translation files"
+ default y
+ help
+ Install binary .qm translation files.
+ If unsure, say y.
+
config BR2_PACKAGE_QT_EXAMPLES
bool "Compile and install Qt examples (with code)"
select BR2_PACKAGE_QT_GUI_MODULE
diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index 82a55095d..880e835a2 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -670,12 +670,14 @@ define QT_INSTALL_TARGET_POWERVR
endef
endif
+ifeq ($(BR2_PACKAGE_QT_TRANSLATION_FILES),y)
define QT_INSTALL_TARGET_TRANSLATIONS
if [ -d $(STAGING_DIR)/usr/share/qt/translations/ ] ; then \
mkdir -p $(TARGET_DIR)/usr/share/qt/translations ; \
cp -dpfr $(STAGING_DIR)/usr/share/qt/translations/* $(TARGET_DIR)/usr/share/qt/translations ; \
fi
endef
+endif
define QT_INSTALL_TARGET_CMDS
$(QT_INSTALL_TARGET_LIBS)