summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-25 13:57:05 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-25 13:59:45 +0300
commit474fe287c4c97427a4b48d0c0d17f3231290150a (patch)
treee6c944e6d9f9841c7f99649ec19a5b6850a71810 /i18npool
parentb4a95f8d215564a2d4cf55c293175ac8e73910c1 (diff)
Filter out extra ICU data for locales we don't want special support for
Change-Id: I40fd00d91a7e5ad5163bef63e1b60381bac58aa4
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/CustomTarget_breakiterator.mk21
1 files changed, 14 insertions, 7 deletions
diff --git a/i18npool/CustomTarget_breakiterator.mk b/i18npool/CustomTarget_breakiterator.mk
index fb7f0d97ae08..ce8a03877659 100644
--- a/i18npool/CustomTarget_breakiterator.mk
+++ b/i18npool/CustomTarget_breakiterator.mk
@@ -38,19 +38,26 @@ $(i18npool_BIDIR)/dict_%.cxx : \
endif
+# Do we want the char_in.brk data? It's for languages in India (and bn_BD)
+ifeq ($(WITH_LOCALES),)
+i18npool_breakiterator_want_in=TRUE
+else ifneq ($(filter bn bn_% gu gu_% hi hi_% kn kn_% ml ml_% or or_% pa pa_% ta ta_% te te_%,$(WITH_LOCALES)),)
+i18npool_breakiterator_want_in=TRUE
+endif
+
i18npool_BRKTXTS := \
- char_in.brk \
+ $(if $(i18npool_breakiterator_want_in),char_in.brk) \
char.brk \
- count_word_fi.brk \
+ $(call gb_Helper_optional_locale,fi,count_word_fi.brk) \
count_word.brk \
- dict_word_fi.brk \
- dict_word_he.brk \
- dict_word_hu.brk \
+ $(call gb_Helper_optional_locale,fi,dict_word_fi.brk) \
+ $(call gb_Helper_optional_locale,he,dict_word_he.brk) \
+ $(call gb_Helper_optional_locale,hu,dict_word_hu.brk) \
dict_word_nodash.brk \
dict_word_prepostdash.brk \
dict_word.brk \
- edit_word_he.brk \
- edit_word_hu.brk \
+ $(call gb_Helper_optional_locale,he,edit_word_he.brk) \
+ $(call gb_Helper_optional_locale,hu,edit_word_hu.brk) \
edit_word.brk \
line.brk \
sent.brk