turn gb_CustomTarget_get_workdir into error and remove old _repo_targets
[LibreOffice.git] / i18npool / Library_i18npool.mk
blob0b72164bbf962e01a047738d16286023f43a85e7
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 i18npool_ICULT53 := $(filter 1, $(shell expr $(ICU_MAJOR) \< 53))
11 i18npool_LCDALL := $(wildcard $(SRCDIR)/i18npool/source/collator/data/*.txt)
12 i18npool_LCDTXTS := $(if $(i18npool_ICULT53), $(i18npool_LCDALL), $(filter-out %/ko_charset.txt, $(i18npool_LCDALL)))
14 $(eval $(call gb_Library_Library,i18npool))
16 ifeq ($(WITH_LOCALES),en)
17 $(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool.en,services))
18 else
19 $(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool,services))
20 endif
22 $(eval $(call gb_Library_set_include,i18npool,\
23 $$(INCLUDE) \
24 -I$(SRCDIR)/i18npool/inc \
27 $(eval $(call gb_Library_use_sdk_api,i18npool))
29 $(eval $(call gb_Library_use_libraries,i18npool,\
30 comphelper \
31 cppu \
32 cppuhelper \
33 i18nlangtag \
34 i18nutil \
35 sal \
38 $(eval $(call gb_Library_use_externals,i18npool,\
39 icui18n \
40 icuuc \
41 icu_headers \
44 ifeq ($(DISABLE_DYNLOADING),TRUE)
45 $(eval $(call gb_Library_add_cxxflags,i18npool,\
46 -DDICT_JA_ZH_IN_DATAFILE \
48 endif
50 $(eval $(call gb_Library_add_exception_objects,i18npool,\
51 i18npool/source/breakiterator/breakiterator_cjk \
52 i18npool/source/breakiterator/breakiteratorImpl \
53 i18npool/source/breakiterator/breakiterator_unicode \
54 i18npool/source/calendar/calendarImpl \
55 i18npool/source/calendar/calendar_gregorian \
56 i18npool/source/calendar/calendar_hijri \
57 i18npool/source/calendar/calendar_jewish \
58 i18npool/source/characterclassification/cclass_unicode \
59 i18npool/source/characterclassification/cclass_unicode_parser \
60 i18npool/source/characterclassification/characterclassificationImpl \
61 i18npool/source/characterclassification/unoscripttypedetector \
62 i18npool/source/collator/chaptercollator \
63 i18npool/source/collator/collatorImpl \
64 i18npool/source/collator/collator_unicode \
65 i18npool/source/defaultnumberingprovider/defaultnumberingprovider \
66 i18npool/source/indexentry/indexentrysupplier \
67 i18npool/source/indexentry/indexentrysupplier_asian \
68 i18npool/source/indexentry/indexentrysupplier_common \
69 i18npool/source/indexentry/indexentrysupplier_default \
70 i18npool/source/indexentry/indexentrysupplier_ja_phonetic \
71 i18npool/source/inputchecker/inputsequencechecker \
72 i18npool/source/inputchecker/inputsequencechecker_hi \
73 i18npool/source/inputchecker/inputsequencechecker_th \
74 i18npool/source/localedata/localedata \
75 i18npool/source/nativenumber/nativenumbersupplier \
76 i18npool/source/numberformatcode/numberformatcode \
77 i18npool/source/ordinalsuffix/ordinalsuffix \
78 i18npool/source/registerservices/registerservices \
79 i18npool/source/textconversion/textconversion \
80 i18npool/source/textconversion/textconversionImpl \
81 i18npool/source/textconversion/textconversion_ko \
82 i18npool/source/textconversion/textconversion_zh \
83 i18npool/source/transliteration/chartonum \
84 i18npool/source/transliteration/fullwidthToHalfwidth \
85 i18npool/source/transliteration/halfwidthToFullwidth \
86 i18npool/source/transliteration/hiraganaToKatakana \
87 i18npool/source/transliteration/ignoreBaFa_ja_JP \
88 i18npool/source/transliteration/ignoreHyuByu_ja_JP \
89 i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP \
90 i18npool/source/transliteration/ignoreIterationMark_ja_JP \
91 i18npool/source/transliteration/ignoreKana \
92 i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP \
93 i18npool/source/transliteration/ignoreMiddleDot_ja_JP \
94 i18npool/source/transliteration/ignoreMinusSign_ja_JP \
95 i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP \
96 i18npool/source/transliteration/ignoreSeparator_ja_JP \
97 i18npool/source/transliteration/ignoreSeZe_ja_JP \
98 i18npool/source/transliteration/ignoreSize_ja_JP \
99 i18npool/source/transliteration/ignoreSpace_ja_JP \
100 i18npool/source/transliteration/ignoreTiJi_ja_JP \
101 i18npool/source/transliteration/ignoreTraditionalKana_ja_JP \
102 i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP \
103 i18npool/source/transliteration/ignoreWidth \
104 i18npool/source/transliteration/ignoreZiZu_ja_JP \
105 i18npool/source/transliteration/ignoreDiacritics_CTL \
106 i18npool/source/transliteration/ignoreKashida_CTL \
107 i18npool/source/transliteration/katakanaToHiragana \
108 i18npool/source/transliteration/largeToSmall_ja_JP \
109 i18npool/source/transliteration/numtochar \
110 i18npool/source/transliteration/numtotext_cjk \
111 i18npool/source/transliteration/smallToLarge_ja_JP \
112 i18npool/source/transliteration/texttonum \
113 i18npool/source/transliteration/textToPronounce_zh \
114 i18npool/source/transliteration/transliteration_body \
115 i18npool/source/transliteration/transliteration_caseignore \
116 i18npool/source/transliteration/transliteration_commonclass \
117 i18npool/source/transliteration/transliteration_Ignore \
118 i18npool/source/transliteration/transliterationImpl \
119 i18npool/source/transliteration/transliteration_Numeric \
120 i18npool/source/transliteration/transliteration_OneToOne \
123 # collator data
124 $(eval $(call gb_Library_add_generated_exception_objects,i18npool,\
125 $(foreach txt,$(i18npool_LCDTXTS),\
126 CustomTarget/i18npool/collator/collator_$(notdir $(basename $(txt)))) \
129 ifeq ($(DISABLE_DYNLOADING),TRUE)
130 $(call gb_CxxObject_get_target,i18npool/source/localedata/localedata): $(gb_CustomTarget_workdir)/i18npool/localedata/localedata_static.hxx
132 ifeq ($(WITH_LOCALES),)
133 i18npool_locale_pattern=%
134 else
135 i18npool_locale_pattern=$(WITH_LOCALES) $(addsuffix _%,$(WITH_LOCALES))
136 endif
138 $(gb_CustomTarget_workdir)/i18npool/localedata/localedata_static.hxx : $(SRCDIR)/i18npool/source/localedata/genstaticheader.pl
139 mkdir -p $(gb_CustomTarget_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))) >$@
141 $(call gb_CxxObject_get_target,i18npool/source/localedata/localedata) : \
142 INCLUDE += -I$(gb_CustomTarget_workdir)/i18npool/localedata
144 endif # DISABLE_DYNLOADING
146 # collator_unicode.cxx includes generated lrl_include.hxx
147 $(call gb_CxxObject_get_target,i18npool/source/collator/collator_unicode) : \
148 INCLUDE += -I$(gb_CustomTarget_workdir)/i18npool/collator
149 $(call gb_CxxObject_get_target,i18npool/source/collator/collator_unicode) :| \
150 $(gb_CustomTarget_workdir)/i18npool/collator/lrl_include.hxx
152 $(eval $(call gb_Library_add_generated_cobjects,i18npool,\
153 CustomTarget/i18npool/breakiterator/OpenOffice_dat \
154 $(foreach txt,$(wildcard $(SRCDIR)/i18npool/source/breakiterator/data/*.txt),\
155 CustomTarget/i18npool/breakiterator/$(notdir $(basename $(txt)))_brk),\
156 $(if $(filter GCC,$(COM)),-Wno-unused-macros) \
159 # index data
160 $(eval $(call gb_Library_add_generated_exception_objects,i18npool,\
161 $(foreach txt,$(wildcard $(SRCDIR)/i18npool/source/indexentry/data/*.txt),\
162 CustomTarget/i18npool/indexentry/$(notdir $(basename $(txt)))) \
165 # textconv_dict
166 $(eval $(call gb_Library_add_generated_exception_objects,i18npool,\
167 $(foreach txt,$(wildcard $(SRCDIR)/i18npool/source/textconversion/data/*.dic),\
168 CustomTarget/i18npool/textconversion/$(notdir $(basename $(txt)))) \
171 # vim: set noet sw=4 ts=4: