related tdf#150197: sd should SetListFormat
[LibreOffice.git] / i18npool / CustomTarget_collator.mk
blob6f8f91f1f6f062f8a5b916643caf17f8a3941420
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_CustomTarget_CustomTarget,i18npool/collator))
12 i18npool_CODIR := $(call gb_CustomTarget_get_workdir,i18npool/collator)
13 i18npool_COTXTS := \
14 cu_charset.txt \
15 $(call gb_Helper_optional_locale,ca, \
16 ca_charset.txt) \
17 $(call gb_Helper_optional_locale,dz, \
18 dz_charset.txt) \
19 $(call gb_Helper_optional_locale,hu, \
20 hu_charset.txt) \
21 $(call gb_Helper_optional_locale,ja, \
22 ja_charset.txt \
23 ja_phonetic_alphanumeric_first.txt \
24 ja_phonetic_alphanumeric_last.txt) \
25 $(if $(i18npool_ICULT53), \
26 $(call gb_Helper_optional_locale,ko, \
27 ko_charset.txt) \
28 ) \
29 $(call gb_Helper_optional_locale,ku, \
30 ku_alphanumeric.txt) \
31 $(call gb_Helper_optional_locale,ln, \
32 ln_charset.txt) \
33 $(call gb_Helper_optional_locale,my, \
34 my_dictionary.txt) \
35 $(call gb_Helper_optional_locale,ne, \
36 ne_charset.txt) \
37 $(call gb_Helper_optional_locale,sid, \
38 sid_charset.txt) \
39 $(call gb_Helper_optional_locale,vro, \
40 vro_alphanumeric.txt) \
41 $(call gb_Helper_optional_locale,zh, \
42 zh_charset.txt \
43 zh_pinyin.txt \
44 zh_radical.txt \
45 zh_stroke.txt \
46 zh_TW_charset.txt \
47 zh_TW_radical.txt \
48 zh_TW_stroke.txt \
49 zh_zhuyin.txt)
51 $(call gb_CustomTarget_get_target,i18npool/collator) : $(SRCDIR)/i18npool/CustomTarget_collator.mk \
52 $(i18npool_CODIR)/lrl_include.hxx $(foreach txt,$(i18npool_COTXTS), \
53 $(patsubst %.txt,$(i18npool_CODIR)/collator_%.cxx,$(txt)))
55 $(i18npool_CODIR)/collator_%.cxx : \
56 $(SRCDIR)/i18npool/source/collator/data/%.txt \
57 $(call gb_Executable_get_runtime_dependencies,gencoll_rule) \
58 | $(i18npool_CODIR)/.dir
59 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CLR,1)
60 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),CLR)
61 $(call gb_Helper_abbreviate_dirs, \
62 $(call gb_Helper_execute,gencoll_rule) $< $@ $*)
63 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),CLR)
65 $(i18npool_CODIR)/lrl_include.hxx : $(SRCDIR)/i18npool/CustomTarget_collator.mk \
66 $(SRCDIR)/i18npool/source/collator/data | $(i18npool_CODIR)/.dir
67 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
68 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),ECH)
69 echo 'constexpr OUStringLiteral LOCAL_RULE_LANGS = u"$(sort $(foreach txt,$(i18npool_COTXTS), \
70 $(firstword $(subst _, ,$(txt)))))";' > $@
71 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),ECH)
73 # vim: set noet sw=4 ts=4: