property REINSTALL should be set only when we apply a PATCH
[LibreOffice.git] / Module_tail_build.mk
blob58eb4f5fb2811bf432595122e684deba67d11ab9
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
15 # The Initial Developer of the Original Code is
16 # Norbert Thiebaud <nthiebaud@gmail.com> (C) 2011, All Rights Reserved.
18 # Alternatively, the contents of this file may be used under the terms of
19 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
20 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
21 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
22 # instead of those above.
25 $(eval $(call gb_Module_Module,tail_build))
27 $(eval $(call gb_Module_add_moduledirs,tail_build,\
28 accessibility \
29 $(call gb_Helper_optional,AFMS,afms) \
30 animations \
31 $(call gb_Helper_optional,APACHE_COMMONS,apache-commons) \
32 apple_remote \
33 autodoc \
34 avmedia \
35 basctl \
36 basebmp \
37 basegfx \
38 basic \
39 bean \
40 $(call gb_Helper_optional,BOOST,boost) \
41 $(call gb_Helper_optional,BSH,beanshell) \
42 binaryurp \
43 $(call gb_Helper_optional,BLUEZ,bluez_bluetooth) \
44 bridges \
45 $(call gb_Helper_optional,CAIRO,cairo) \
46 canvas \
47 chart2 \
48 cli_ure \
49 $(call gb_Helper_optional,CLUCENE,clucene) \
50 $(call gb_Helper_optional,DESKTOP,codemaker) \
51 comphelper \
52 configmgr \
53 connectivity \
54 cosv \
55 cppcanvas \
56 cppu \
57 cppuhelper \
58 cpputools \
59 $(call gb_Helper_optional,CT2N,ct2n) \
60 cui \
61 $(call gb_Helper_optional,CURL,curl) \
62 dbaccess \
63 desktop \
64 $(call gb_Helper_optional,DICTIONARIES,dictionaries) \
65 dtrans \
66 drawinglayer \
67 editeng \
68 embeddedobj \
69 embedserv \
70 $(call gb_Helper_optional,EPM,epm) \
71 eventattacher \
72 extensions \
73 extras \
74 fileaccess \
75 filter \
76 forms \
77 formula \
78 fpicker \
79 framework \
80 $(call gb_Helper_optional,GRAPHITE,graphite) \
81 $(call gb_Helper_optional,DESKTOP,helpcompiler) \
82 $(call gb_Helper_optional,HSQLDB,hsqldb) \
83 $(call gb_Helper_optional,HUNSPELL,hunspell) \
84 hwpfilter \
85 $(call gb_Helper_optional,HYPHEN,hyphen) \
86 i18npool \
87 i18nutil \
88 idl \
89 $(call gb_Helper_optional,DESKTOP,idlc) \
90 io \
91 javaunohelper \
92 $(call gb_Helper_optional,JFREEREPORT,jfreereport) \
93 $(call gb_Helper_optional,JPEG,jpeg) \
94 jurt \
95 jvmaccess \
96 jvmfwk \
97 $(call gb_Helper_optional,LANGUAGETOOL,languagetool) \
98 $(call gb_Helper_optional,LCMS2,lcms2) \
99 libcdr \
100 libcmis \
101 $(call gb_Helper_optional,LIBEXTTEXTCAT,libexttextcat) \
102 $(call gb_Helper_optional,LIBLANGTAG,liblangtag) \
103 libmspub \
104 liborcus \
105 librelogo \
106 libvisio \
107 libwpd \
108 libwpg \
109 libwps \
110 libxmlsec \
111 lingucomponent \
112 linguistic \
113 lotuswordpro \
114 $(call gb_Helper_optional,LPSOLVE,lpsolve) \
115 $(call gb_Helper_optional,DESKTOP,l10ntools) \
116 MathMLDTD \
117 mdds \
118 Mesa \
119 $(call gb_Helper_optional,MORE_FONTS,more_fonts) \
120 $(call gb_Helper_optional,MYTHES,mythes) \
121 $(call gb_Helper_optional,NEON,neon) \
122 $(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
123 np_sdk \
124 o3tl \
125 offapi \
126 officecfg \
127 oovbaapi \
128 oox \
129 $(call gb_Helper_optional,OPENLDAP,openldap) \
130 package \
131 padmin \
132 $(call gb_Helper_optional,POSTGRESQL,postgresql) \
133 psprint_config \
134 $(call gb_Helper_optional,PYUNO,pyuno) \
135 $(call gb_Helper_optional,QADEVOOO,qadevOOo) \
136 readlicense_oo \
137 registry \
138 remotebridges \
139 reportbuilder \
140 reportdesign \
141 $(call gb_Helper_optional,RHINO,rhino) \
142 ridljar \
143 rsc \
144 sal \
145 salhelper \
146 sane \
147 sax \
148 sc \
149 scaddins \
150 sccomp \
151 $(call gb_Helper_optional,DESKTOP,scp2) \
152 scripting \
153 sd \
154 sdext \
155 sfx2 \
156 shell \
157 slideshow \
158 smoketest \
159 sot \
160 starmath \
161 stoc \
162 store \
163 svl \
164 svtools \
165 svgio \
166 svx \
167 sw \
168 swext \
169 test \
170 testtools \
171 $(call gb_Helper_optional,TOMCAT,tomcat) \
172 toolkit \
173 tools \
174 touch \
175 tubes \
176 twain \
177 ucb \
178 ucbhelper \
179 $(call gb_Helper_optional,UCPP,ucpp) \
180 udkapi \
181 udm \
182 unixODBC \
183 UnoControls \
184 unodevtools \
185 unoil \
186 unotest \
187 unotools \
188 unoxml \
189 ure \
190 uui \
191 vbahelper \
192 vcl \
193 vigra \
194 wizards \
195 writerfilter \
196 writerperfect \
197 $(call gb_Helper_optional,X11_EXTENSIONS,x11_extensions) \
198 xmerge \
199 $(call gb_Helper_optional,DESKTOP,xmlhelp) \
200 xmloff \
201 xmlreader \
202 xmlscript \
203 xmlsecurity \
204 xsltml \
207 ifeq ($(MERGELIBS),TRUE)
208 $(eval $(call gb_Module_add_targets,tail_build,\
209 Library_merged \
211 endif
213 # Especially when building everything with symbols, the linking of the largest
214 # libraries takes enormous amounts of RAM. To prevent annoying OOM situations
215 # etc., try to prevent linking these in parallel by adding artificial build
216 # order dependencies here.
217 define tailbuild_serialize1
218 $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,$(1))) \
219 :| $(foreach lib,$(2),$(call gb_Library_get_target,$(lib)))
220 endef
222 define tailbuild_serialize
223 $(if $(filter-out 0 1,$(words $(1))),\
224 $(call tailbuild_serialize1,$(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))
225 $(if $(strip $(1)),\
226 $(call tailbuild_serialize,$(wordlist 2,$(words $(1)),$(1))))
227 endef
229 ifeq (all,$(filter all,$(MAKECMDGOALS)))
230 $(eval $(call tailbuild_serialize,\
231 scfilt \
232 $(if $(filter SCRIPTING,$(BUILD_TYPE)),vbaobj) \
233 sc msword swui sw sd \
234 $(if $(filter DBCONNECTIVITY,$(BUILD_TYPE)),dbu) \
235 writerfilter cui chartcontroller oox \
236 $(if $(filter TRUE,$(MERGELIBS)),merged,svxcore) \
237 vcl xo \
239 endif
241 # vim: set noet sw=4 ts=4: