summaryrefslogtreecommitdiff
path: root/i18npool/Library_i18npool.mk
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/Library_i18npool.mk')
-rw-r--r--i18npool/Library_i18npool.mk31
1 files changed, 28 insertions, 3 deletions
diff --git a/i18npool/Library_i18npool.mk b/i18npool/Library_i18npool.mk
index 6bbab747d462..bd945d9329dc 100644
--- a/i18npool/Library_i18npool.mk
+++ b/i18npool/Library_i18npool.mk
@@ -7,9 +7,17 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
+i18npool_ICULT53 := $(filter 1, $(shell expr $(ICU_MAJOR) \< 53))
+i18npool_LCDALL := $(wildcard $(SRCDIR)/i18npool/source/collator/data/*.txt)
+i18npool_LCDTXTS := $(if $(i18npool_ICULT53), $(i18npool_LCDALL), $(filter-out %/ko_charset.txt, $(i18npool_LCDALL)))
+
$(eval $(call gb_Library_Library,i18npool))
-$(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool))
+ifeq ($(WITH_LOCALES),en)
+$(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool.en,services))
+else
+$(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool,services))
+endif
$(eval $(call gb_Library_set_include,i18npool,\
$$(INCLUDE) \
@@ -28,7 +36,6 @@ $(eval $(call gb_Library_use_libraries,i18npool,\
))
$(eval $(call gb_Library_use_externals,i18npool,\
- boost_headers \
icui18n \
icuuc \
icu_headers \
@@ -115,6 +122,12 @@ $(eval $(call gb_Library_add_exception_objects,i18npool,\
i18npool/source/transliteration/transliteration_OneToOne \
))
+# collator data
+$(eval $(call gb_Library_add_generated_exception_objects,i18npool,\
+ $(foreach txt,$(i18npool_LCDTXTS),\
+ CustomTarget/i18npool/collator/collator_$(notdir $(basename $(txt)))) \
+))
+
ifeq ($(DISABLE_DYNLOADING),TRUE)
$(call gb_CxxObject_get_target,i18npool/source/localedata/localedata): $(call gb_CustomTarget_get_workdir,i18npool/localedata)/localedata_static.hxx
@@ -130,7 +143,7 @@ $(call gb_CustomTarget_get_workdir,i18npool/localedata)/localedata_static.hxx :
$(call gb_CxxObject_get_target,i18npool/source/localedata/localedata) : \
INCLUDE += -I$(call gb_CustomTarget_get_workdir,i18npool/localedata)
-endif
+endif # DISABLE_DYNLOADING
# collator_unicode.cxx includes generated lrl_include.hxx
$(call gb_CxxObject_get_target,i18npool/source/collator/collator_unicode) : \
@@ -145,4 +158,16 @@ $(eval $(call gb_Library_add_generated_cobjects,i18npool,\
$(if $(filter GCC,$(COM)),-Wno-unused-macros) \
))
+# index data
+$(eval $(call gb_Library_add_generated_exception_objects,i18npool,\
+ $(foreach txt,$(wildcard $(SRCDIR)/i18npool/source/indexentry/data/*.txt),\
+ CustomTarget/i18npool/indexentry/$(notdir $(basename $(txt)))) \
+))
+
+# textconv_dict
+$(eval $(call gb_Library_add_generated_exception_objects,i18npool,\
+ $(foreach txt,$(wildcard $(SRCDIR)/i18npool/source/textconversion/data/*.dic),\
+ CustomTarget/i18npool/textconversion/$(notdir $(basename $(txt)))) \
+))
+
# vim: set noet sw=4 ts=4: