Revert "workaround compile failures in libxml, with clang-17"
[LibreOffice.git] / i18npool / Library_i18npool.mk
blob97a79be3910b1e9f7d2c75fc45669be861eb800c
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_Library_Library,i18npool))
12 ifeq ($(WITH_LOCALES),en)
13 $(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool.en,services))
14 else
15 $(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool,services))
16 endif
18 $(eval $(call gb_Library_set_include,i18npool,\
19 $$(INCLUDE) \
20 -I$(SRCDIR)/i18npool/inc \
23 $(eval $(call gb_Library_use_sdk_api,i18npool))
25 $(eval $(call gb_Library_use_libraries,i18npool,\
26 comphelper \
27 cppu \
28 cppuhelper \
29 i18nlangtag \
30 i18nutil \
31 sal \
34 $(eval $(call gb_Library_use_externals,i18npool,\
35 boost_headers \
36 icui18n \
37 icuuc \
38 icu_headers \
41 ifeq ($(DISABLE_DYNLOADING),TRUE)
42 $(eval $(call gb_Library_add_cxxflags,i18npool,\
43 -DDICT_JA_ZH_IN_DATAFILE \
45 endif
47 $(eval $(call gb_Library_add_exception_objects,i18npool,\
48 i18npool/source/breakiterator/breakiterator_cjk \
49 i18npool/source/breakiterator/breakiteratorImpl \
50 i18npool/source/breakiterator/breakiterator_th \
51 i18npool/source/breakiterator/breakiterator_unicode \
52 i18npool/source/breakiterator/xdictionary \
53 i18npool/source/calendar/calendarImpl \
54 i18npool/source/calendar/calendar_gregorian \
55 i18npool/source/calendar/calendar_hijri \
56 i18npool/source/calendar/calendar_jewish \
57 i18npool/source/characterclassification/cclass_unicode \
58 i18npool/source/characterclassification/cclass_unicode_parser \
59 i18npool/source/characterclassification/characterclassificationImpl \
60 i18npool/source/characterclassification/unoscripttypedetector \
61 i18npool/source/collator/chaptercollator \
62 i18npool/source/collator/collatorImpl \
63 i18npool/source/collator/collator_unicode \
64 i18npool/source/defaultnumberingprovider/defaultnumberingprovider \
65 i18npool/source/indexentry/indexentrysupplier \
66 i18npool/source/indexentry/indexentrysupplier_asian \
67 i18npool/source/indexentry/indexentrysupplier_common \
68 i18npool/source/indexentry/indexentrysupplier_default \
69 i18npool/source/indexentry/indexentrysupplier_ja_phonetic \
70 i18npool/source/inputchecker/inputsequencechecker \
71 i18npool/source/inputchecker/inputsequencechecker_hi \
72 i18npool/source/inputchecker/inputsequencechecker_th \
73 i18npool/source/localedata/localedata \
74 i18npool/source/nativenumber/nativenumbersupplier \
75 i18npool/source/numberformatcode/numberformatcode \
76 i18npool/source/ordinalsuffix/ordinalsuffix \
77 i18npool/source/registerservices/registerservices \
78 i18npool/source/textconversion/textconversion \
79 i18npool/source/textconversion/textconversionImpl \
80 i18npool/source/textconversion/textconversion_ko \
81 i18npool/source/textconversion/textconversion_zh \
82 i18npool/source/transliteration/chartonum \
83 i18npool/source/transliteration/fullwidthToHalfwidth \
84 i18npool/source/transliteration/halfwidthToFullwidth \
85 i18npool/source/transliteration/hiraganaToKatakana \
86 i18npool/source/transliteration/ignoreBaFa_ja_JP \
87 i18npool/source/transliteration/ignoreHyuByu_ja_JP \
88 i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP \
89 i18npool/source/transliteration/ignoreIterationMark_ja_JP \
90 i18npool/source/transliteration/ignoreKana \
91 i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP \
92 i18npool/source/transliteration/ignoreMiddleDot_ja_JP \
93 i18npool/source/transliteration/ignoreMinusSign_ja_JP \
94 i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP \
95 i18npool/source/transliteration/ignoreSeparator_ja_JP \
96 i18npool/source/transliteration/ignoreSeZe_ja_JP \
97 i18npool/source/transliteration/ignoreSize_ja_JP \
98 i18npool/source/transliteration/ignoreSpace_ja_JP \
99 i18npool/source/transliteration/ignoreTiJi_ja_JP \
100 i18npool/source/transliteration/ignoreTraditionalKana_ja_JP \
101 i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP \
102 i18npool/source/transliteration/ignoreWidth \
103 i18npool/source/transliteration/ignoreZiZu_ja_JP \
104 i18npool/source/transliteration/ignoreDiacritics_CTL \
105 i18npool/source/transliteration/ignoreKashida_CTL \
106 i18npool/source/transliteration/katakanaToHiragana \
107 i18npool/source/transliteration/largeToSmall_ja_JP \
108 i18npool/source/transliteration/numtochar \
109 i18npool/source/transliteration/numtotext_cjk \
110 i18npool/source/transliteration/smallToLarge_ja_JP \
111 i18npool/source/transliteration/texttonum \
112 i18npool/source/transliteration/textToPronounce_zh \
113 i18npool/source/transliteration/transliteration_body \
114 i18npool/source/transliteration/transliteration_caseignore \
115 i18npool/source/transliteration/transliteration_commonclass \
116 i18npool/source/transliteration/transliteration_Ignore \
117 i18npool/source/transliteration/transliterationImpl \
118 i18npool/source/transliteration/transliteration_Numeric \
119 i18npool/source/transliteration/transliteration_OneToOne \
122 ifeq ($(DISABLE_DYNLOADING),TRUE)
123 $(call gb_CxxObject_get_target,i18npool/source/localedata/localedata): $(call gb_CustomTarget_get_workdir,i18npool/localedata)/localedata_static.hxx
125 ifeq ($(WITH_LOCALES),)
126 i18npool_locale_pattern=%
127 else
128 i18npool_locale_pattern=$(WITH_LOCALES) $(addsuffix _%,$(WITH_LOCALES))
129 endif
131 $(call gb_CustomTarget_get_workdir,i18npool/localedata)/localedata_static.hxx : $(SRCDIR)/i18npool/source/localedata/genstaticheader.pl
132 mkdir -p $(call gb_CustomTarget_get_workdir,i18npool/localedata) && $(PERL) $(SRCDIR)/i18npool/source/localedata/genstaticheader.pl $(filter $(i18npool_locale_pattern),$(patsubst $(SRCDIR)/i18npool/source/localedata/data/%.xml,%,$(shell echo $(SRCDIR)/i18npool/source/localedata/data/*.xml))) >$@
134 $(call gb_CxxObject_get_target,i18npool/source/localedata/localedata) : \
135 INCLUDE += -I$(call gb_CustomTarget_get_workdir,i18npool/localedata)
137 endif # DISABLE_DYNLOADING
139 # collator_unicode.cxx includes generated lrl_include.hxx
140 $(call gb_CxxObject_get_target,i18npool/source/collator/collator_unicode) : \
141 INCLUDE += -I$(call gb_CustomTarget_get_workdir,i18npool/collator)
142 $(call gb_CxxObject_get_target,i18npool/source/collator/collator_unicode) :| \
143 $(call gb_CustomTarget_get_workdir,i18npool/collator)/lrl_include.hxx
145 $(eval $(call gb_Library_add_generated_cobjects,i18npool,\
146 CustomTarget/i18npool/breakiterator/OpenOffice_dat \
147 $(foreach txt,$(wildcard $(SRCDIR)/i18npool/source/breakiterator/data/*.txt),\
148 CustomTarget/i18npool/breakiterator/$(notdir $(basename $(txt)))_brk),\
149 $(if $(filter GCC,$(COM)),-Wno-unused-macros) \
152 # vim: set noet sw=4 ts=4: