Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / i18npool / Library_i18npool.mk
blobfd85033d8c5ece15b6976927f7792ce1221f19a7
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Initial Developer of the Original Code is
15 # Matúš Kukan <matus.kukan@gmail.com>
16 # Portions created by the Initial Developer are Copyright (C) 2011 the
17 # Initial Developer. All Rights Reserved.
19 # Major Contributor(s):
21 # For minor contributions see the git repository.
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
25 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
26 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
27 # instead of those above.
29 $(eval $(call gb_Library_Library,i18npool))
31 $(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool))
33 $(eval $(call gb_Library_set_include,i18npool,\
34 $$(INCLUDE) \
35 -I$(SRCDIR)/i18npool/inc \
38 $(eval $(call gb_Library_use_api,i18npool,\
39 udkapi \
40 offapi \
43 $(eval $(call gb_Library_use_libraries,i18npool,\
44 comphelper \
45 cppu \
46 cppuhelper \
47 i18nisolang1 \
48 i18nutil \
49 sal \
50 $(gb_STDLIBS) \
53 ifeq ($(OS)$(COM),WNTMSC)
54 $(eval $(call gb_Library_use_externals,i18npool,\
55 icuin \
56 icuuc \
58 else
59 $(eval $(call gb_Library_use_externals,i18npool,\
60 icui18n \
61 icuuc \
63 endif
65 $(eval $(call gb_Library_add_exception_objects,i18npool,\
66 i18npool/source/breakiterator/breakiterator_cjk \
67 i18npool/source/breakiterator/breakiterator_ctl \
68 i18npool/source/breakiterator/breakiteratorImpl \
69 i18npool/source/breakiterator/breakiterator_th \
70 i18npool/source/breakiterator/breakiterator_unicode \
71 i18npool/source/breakiterator/xdictionary \
72 i18npool/source/calendar/calendarImpl \
73 i18npool/source/calendar/calendar_gregorian \
74 i18npool/source/calendar/calendar_hijri \
75 i18npool/source/calendar/calendar_jewish \
76 i18npool/source/characterclassification/cclass_unicode \
77 i18npool/source/characterclassification/cclass_unicode_parser \
78 i18npool/source/characterclassification/characterclassificationImpl \
79 i18npool/source/characterclassification/unoscripttypedetector \
80 i18npool/source/collator/chaptercollator \
81 i18npool/source/collator/collatorImpl \
82 i18npool/source/collator/collator_unicode \
83 i18npool/source/defaultnumberingprovider/defaultnumberingprovider \
84 i18npool/source/indexentry/indexentrysupplier \
85 i18npool/source/indexentry/indexentrysupplier_asian \
86 i18npool/source/indexentry/indexentrysupplier_common \
87 i18npool/source/indexentry/indexentrysupplier_default \
88 i18npool/source/indexentry/indexentrysupplier_ja_phonetic \
89 i18npool/source/inputchecker/inputsequencechecker \
90 i18npool/source/inputchecker/inputsequencechecker_hi \
91 i18npool/source/inputchecker/inputsequencechecker_th \
92 i18npool/source/localedata/localedata \
93 i18npool/source/nativenumber/nativenumbersupplier \
94 i18npool/source/numberformatcode/numberformatcode \
95 i18npool/source/ordinalsuffix/ordinalsuffix \
96 i18npool/source/registerservices/registerservices \
97 i18npool/source/textconversion/textconversion \
98 i18npool/source/textconversion/textconversionImpl \
99 i18npool/source/textconversion/textconversion_ko \
100 i18npool/source/textconversion/textconversion_zh \
101 i18npool/source/transliteration/chartonum \
102 i18npool/source/transliteration/fullwidthToHalfwidth \
103 i18npool/source/transliteration/halfwidthToFullwidth \
104 i18npool/source/transliteration/hiraganaToKatakana \
105 i18npool/source/transliteration/ignoreBaFa_ja_JP \
106 i18npool/source/transliteration/ignoreHyuByu_ja_JP \
107 i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP \
108 i18npool/source/transliteration/ignoreIterationMark_ja_JP \
109 i18npool/source/transliteration/ignoreKana \
110 i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP \
111 i18npool/source/transliteration/ignoreMiddleDot_ja_JP \
112 i18npool/source/transliteration/ignoreMinusSign_ja_JP \
113 i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP \
114 i18npool/source/transliteration/ignoreSeparator_ja_JP \
115 i18npool/source/transliteration/ignoreSeZe_ja_JP \
116 i18npool/source/transliteration/ignoreSize_ja_JP \
117 i18npool/source/transliteration/ignoreSpace_ja_JP \
118 i18npool/source/transliteration/ignoreTiJi_ja_JP \
119 i18npool/source/transliteration/ignoreTraditionalKana_ja_JP \
120 i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP \
121 i18npool/source/transliteration/ignoreWidth \
122 i18npool/source/transliteration/ignoreZiZu_ja_JP \
123 i18npool/source/transliteration/katakanaToHiragana \
124 i18npool/source/transliteration/largeToSmall_ja_JP \
125 i18npool/source/transliteration/numtochar \
126 i18npool/source/transliteration/numtotext_cjk \
127 i18npool/source/transliteration/smallToLarge_ja_JP \
128 i18npool/source/transliteration/texttonum \
129 i18npool/source/transliteration/textToPronounce_zh \
130 i18npool/source/transliteration/transliteration_body \
131 i18npool/source/transliteration/transliteration_caseignore \
132 i18npool/source/transliteration/transliteration_commonclass \
133 i18npool/source/transliteration/transliteration_Ignore \
134 i18npool/source/transliteration/transliterationImpl \
135 i18npool/source/transliteration/transliteration_Numeric \
136 i18npool/source/transliteration/transliteration_OneToOne \
139 ifeq ($(DISABLE_DYNLOADING),TRUE)
140 $(call gb_CxxObject_get_target,i18npool/source/localedata/localedata): $(call gb_CustomTarget_get_workdir,i18npool/localedata)/localedata_static.hxx
142 $(call gb_CustomTarget_get_workdir,i18npool/localedata)/localedata_static.hxx : $(SRCDIR)/i18npool/source/localedata/genstaticheader.pl
143 $(PERL) $(SRCDIR)/i18npool/source/localedata/genstaticheader.pl $(patsubst $(SRCDIR)/i18npool/source/localedata/data/%.xml,%,$(shell echo $(SRCDIR)/i18npool/source/localedata/data/*.xml)) >$@
145 $(call gb_CxxObject_get_target,i18npool/source/localedata/localedata) : \
146 INCLUDE += -I$(call gb_CustomTarget_get_workdir,i18npool/localedata)
148 endif
150 # collator_unicode.cxx includes generated lrl_include.hxx
151 $(call gb_CxxObject_get_target,i18npool/source/collator/collator_unicode) : \
152 INCLUDE += -I$(call gb_CustomTarget_get_workdir,i18npool/collator)
153 $(call gb_CxxObject_get_target,i18npool/source/collator/collator_unicode) :| \
154 $(call gb_CustomTarget_get_workdir,i18npool/collator)/lrl_include.hxx
156 $(eval $(call gb_Library_add_generated_cobjects,i18npool,\
157 CustomTarget/i18npool/breakiterator/OpenOffice_dat \
158 $(foreach txt,$(wildcard $(SRCDIR)/i18npool/source/breakiterator/data/*.txt),\
159 CustomTarget/i18npool/breakiterator/$(notdir $(basename $(txt)))_brk) \
162 # i18npool dlopens localedata_* libraries.
163 # This is runtime dependency to prevent tests
164 # to be run sooner then localedata_* exists.
165 $(call gb_Library_get_target,i18npool) : | \
166 $(call gb_Library_get_target,localedata_en) \
167 $(call gb_Library_get_target,localedata_es) \
168 $(call gb_Library_get_target,localedata_euro) \
169 $(call gb_Library_get_target,localedata_others) \
171 # vim: set noet sw=4 ts=4: