diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-04-16 17:54:24 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-04-16 17:56:44 +0200 |
commit | 4ff3a87282185a3bd3dfa69128596e6e3b41ce18 (patch) | |
tree | f04886c419c32035a73c35e1eb19086d8f6b3b5c /solenv | |
parent | Updated core (diff) | |
download | core-4ff3a87282185a3bd3dfa69128596e6e3b41ce18.tar.gz core-4ff3a87282185a3bd3dfa69128596e6e3b41ce18.zip |
gbuild: add gb_Dictionary_add_localized_xcu_file
... which fixed en-US only builds of dictionaries.
Change-Id: Icc6e02bee80c10c5388dcac193fbcf1d36f6c50a
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/Dictionary.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/solenv/gbuild/Dictionary.mk b/solenv/gbuild/Dictionary.mk index 9184b8987bac..60f72d0fff34 100644 --- a/solenv/gbuild/Dictionary.mk +++ b/solenv/gbuild/Dictionary.mk @@ -285,6 +285,20 @@ $(foreach file,$(3),$(call gb_Dictionary_add_generated_file,$(1),$(2)/$(notdir $ endef +# Adds a localized xcu file, which needs special handling because it may be +# in $(WORKDIR) or $(SRCDIR) depending on whether translations are built. +# +# gb_Dictionary_add_localized_xcu_file dictionary destdir file +define gb_Dictionary_add_localized_xcu_file +ifeq ($(gb_WITH_LANG),) +$(call gb_Dictionary__add_file,$(1),$(1),$(2),$(strip $(3))) +else +$(call gb_Dictionary__add_file,$(1),$(1)_generated,$(2),$(subst $(WORKDIR)/,,$(call gb_XcuFile_for_extension,$(strip $(3))))) +$(call gb_PackageSet_add_package,$(call gb_Dictionary_get_packagesetname,$(1)),$(call gb_Dictionary_get_packagename,$(1)_generated)) +endif + +endef + # Adds a file to the root dir of the dictionary # # gb_Dictionary_add_root_file dictionary file |