diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2013-09-12 15:12:36 -0400 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-09-19 21:41:33 +0200 |
commit | 93917b6980f7f2b51302e1a3fa451b07cf7d674e (patch) | |
tree | 283edd224c4fce3ef178eb83c9aac1f340e4f4de /package/qt | |
parent | b722bfc32184a82b6e56e779cff7a4bac7f69874 (diff) | |
download | buildroot-93917b6980f7f2b51302e1a3fa451b07cf7d674e.tar.gz buildroot-93917b6980f7f2b51302e1a3fa451b07cf7d674e.zip |
qt: install translations
The Qt translation files are currently created and moved under
$(STAGING_DIR)/usr/translations but not installed on the target.
This patch defines the translations directory to
/usr/share/qt/translations and defines a QT_INSTALL_TARGET_TRANSLATIONS
macro to deploy them from the staging directory to the target directory.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/qt')
-rw-r--r-- | package/qt/qt.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/qt/qt.mk b/package/qt/qt.mk index daade3c30c..48d39fc501 100644 --- a/package/qt/qt.mk +++ b/package/qt/qt.mk @@ -516,6 +516,7 @@ define QT_CONFIGURE_CMDS -prefix /usr \ -plugindir /usr/lib/qt/plugins \ -importdir /usr/lib/qt/imports \ + -translationdir /usr/share/qt/translations \ -hostprefix $(STAGING_DIR) \ -fast \ -no-rpath \ @@ -666,6 +667,13 @@ define QT_INSTALL_TARGET_POWERVR endef endif +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 + define QT_INSTALL_TARGET_CMDS $(QT_INSTALL_TARGET_LIBS) $(QT_INSTALL_TARGET_PLUGINS) @@ -673,6 +681,7 @@ define QT_INSTALL_TARGET_CMDS $(QT_INSTALL_TARGET_FONTS) $(QT_INSTALL_TARGET_FONTS_TTF) $(QT_INSTALL_TARGET_POWERVR) + $(QT_INSTALL_TARGET_TRANSLATIONS) endef define QT_CLEAN_CMDS |