tdf#147109: Optimize ScInterpreter::ScSubstitute
[LibreOffice.git] / RepositoryModule_host.mk
blob49118cd6259d3d895cfb7031e424d10980f23221
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
4 # This file is part of the LibreOffice project.
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 $(eval $(call gb_Module_Module,libreoffice))
14 # This makefile needs to be read first because some variables like T_LIBS
15 # for libmerged are cleared there and then later we append stuff to it
16 # through e.g. gb_Library_use_external for various libraries in libmerged.
17 ifneq ($(MERGELIBS),)
18 $(eval $(call gb_Module_add_targets,libreoffice,\
19 Library_merged \
21 endif
23 # WASM_CHART change
24 ifneq ($(ENABLE_WASM_STRIP_CHART),TRUE)
25 $(eval $(call gb_Module_add_moduledirs,libreoffice,\
26 chart2 \
28 endif
30 # WASM_CANVAS change
31 ifneq ($(ENABLE_WASM_STRIP_CANVAS),TRUE)
32 $(eval $(call gb_Module_add_moduledirs,libreoffice,\
33 canvas \
34 cppcanvas \
36 endif
38 ifneq ($(ENABLE_WASM_STRIP_DBACCESS),TRUE)
39 $(eval $(call gb_Module_add_moduledirs,libreoffice,\
40 dbaccess \
42 endif
44 ifneq ($(ENABLE_WASM_STRIP_ACCESSIBILITY),TRUE)
45 $(eval $(call gb_Module_add_moduledirs,libreoffice,\
46 accessibility \
47 winaccessibility \
49 endif
51 $(eval $(call gb_Module_add_moduledirs,libreoffice,\
52 android \
53 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
54 animations \
55 ) \
56 apple_remote \
57 avmedia \
58 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
59 basctl \
60 ) \
61 basegfx \
62 basic \
63 bean \
64 binaryurp \
65 bridges \
66 cli_ure \
67 codemaker \
68 comphelper \
69 configmgr \
70 connectivity \
71 cppu \
72 cppuhelper \
73 cpputools \
74 cui \
75 desktop \
76 $(call gb_Helper_optional,DICTIONARIES,dictionaries) \
77 drawinglayer \
78 editeng \
79 embeddedobj \
80 embedserv \
81 eventattacher \
82 extensions \
83 external \
84 extras \
85 filter \
86 $(call gb_Helper_optional,DBCONNECTIVITY,forms) \
87 formula \
88 $(call gb_Helper_optional,DESKTOP,fpicker) \
89 framework \
90 $(call gb_Helper_optionals_or,HELPTOOLS XMLHELP,helpcompiler) \
91 $(call gb_Helper_optional,HELP,helpcontent2) \
92 hwpfilter \
93 i18nlangtag \
94 i18npool \
95 i18nutil \
96 idl \
97 $(call gb_Helper_optional,DESKTOP,idlc) \
98 instsetoo_native \
99 io \
100 javaunohelper \
101 jurt \
102 jvmaccess \
103 jvmfwk \
104 $(call gb_Helper_optional,LIBRELOGO,librelogo) \
105 libreofficekit \
106 lingucomponent \
107 linguistic \
108 lotuswordpro \
109 $(call gb_Helper_optional,DESKTOP,l10ntools) \
110 $(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
111 o3tl \
112 $(call gb_Helper_optional,ODK,odk) \
113 offapi \
114 officecfg \
115 onlineupdate \
116 oovbaapi \
117 oox \
118 $(call gb_Helper_optional,OPENCL,opencl) \
119 package \
120 pch \
121 postprocess \
122 $(call gb_Helper_optional,PYUNO,pyuno) \
123 $(call gb_Helper_optional,QADEVOOO,qadevOOo) \
124 readlicense_oo \
125 registry \
126 remotebridges \
127 reportbuilder \
128 $(call gb_Helper_optional,DBCONNECTIVITY,reportdesign) \
129 ridljar \
130 sal \
131 salhelper \
132 sax \
133 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
134 sc \
135 scaddins \
136 sccomp \
138 $(call gb_Helper_optional,DESKTOP,scp2) \
139 scripting \
140 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
141 sd \
142 sdext \
144 $(call gb_Helper_optional,DESKTOP,setup_native) \
145 sfx2 \
146 shell \
147 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
148 slideshow \
150 smoketest \
151 solenv \
152 soltools \
153 sot \
154 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
155 starmath \
157 $(if $(ENABLE_CUSTOMTARGET_COMPONENTS),static) \
158 stoc \
159 store \
160 svl \
161 svtools \
162 svgio \
163 emfio \
164 svx \
165 sw \
166 swext \
167 sysui \
168 test \
169 testtools \
170 toolkit \
171 tools \
172 ucb \
173 ucbhelper \
174 udkapi \
175 $(call gb_Helper_optional,PYUNO,uitest) \
176 UnoControls \
177 unodevtools \
178 unoil \
179 unoidl \
180 unotest \
181 unotools \
182 unoxml \
183 ure \
184 uui \
185 vbahelper \
186 vcl \
187 wizards \
188 writerfilter \
189 writerperfect \
190 xmerge \
191 $(call gb_Helper_optional,XMLHELP,xmlhelp) \
192 xmloff \
193 xmlreader \
194 xmlscript \
195 xmlsecurity \
198 ifeq (,$(DISABLE_DYNLOADING))
199 # Especially when building everything with symbols, the linking of the largest
200 # libraries takes enormous amounts of RAM. To prevent annoying OOM situations
201 # etc., try to prevent linking these in parallel by adding artificial build
202 # order dependencies here.
203 define repositorymodule_serialize1
204 $(call gb_Library_get_linktarget_target,$(1)) :| $(foreach lib,$(2),$(call gb_Library_get_target,$(lib)))
205 endef
207 define repositorymodule_serialize
208 $(if $(filter-out 0 1,$(words $(1))),\
209 $(call repositorymodule_serialize1,$(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))
210 $(if $(strip $(1)),\
211 $(call repositorymodule_serialize,$(wordlist 2,$(words $(1)),$(1))))
212 endef
214 # DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
215 # otherwise cyclic dependencies ruin everything.
216 # do not serialize on a partial build as that may fail due to missing deps.
217 # the default goal is build (see Module.mk)
218 ifeq (,$(filter-out build check unitcheck slowcheck screenshot subsequentcheck uicheck,$(MAKECMDGOALS)))
219 $(eval $(call repositorymodule_serialize,\
220 scfilt \
221 $(call gb_Helper_optional,SCRIPTING,vbaobj) \
222 sc msword \
223 $(call gb_Helper_optional,DESKTOP,swui) \
224 sw sd \
225 $(call gb_Helper_optional,DBCONNECTIVITY,dbu) \
226 writerfilter cui chartcontroller chartcore oox \
227 $(if $(MERGELIBS), merged, \
228 svx svxcore xo sfx fwk svt vcl) \
230 endif
231 endif # !$(DISABLE_DYNLOADING)
233 # vim: set noet sw=4 ts=4: