cid#1509396 Explicit null dereferenced
[LibreOffice.git] / RepositoryModule_host.mk
blob287bd12b83234a29f92daeb492d37be9405111d0
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 instsetoo_native \
98 io \
99 javaunohelper \
100 jurt \
101 jvmaccess \
102 jvmfwk \
103 $(call gb_Helper_optional,LIBRELOGO,librelogo) \
104 libreofficekit \
105 lingucomponent \
106 linguistic \
107 lotuswordpro \
108 $(call gb_Helper_optional,DESKTOP,l10ntools) \
109 $(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
110 o3tl \
111 $(call gb_Helper_optional,ODK,odk) \
112 offapi \
113 officecfg \
114 onlineupdate \
115 oovbaapi \
116 oox \
117 $(call gb_Helper_optional,OPENCL,opencl) \
118 package \
119 pch \
120 postprocess \
121 $(call gb_Helper_optional,PYUNO,pyuno) \
122 $(call gb_Helper_optional,QADEVOOO,qadevOOo) \
123 readlicense_oo \
124 registry \
125 remotebridges \
126 reportbuilder \
127 $(call gb_Helper_optional,DBCONNECTIVITY,reportdesign) \
128 ridljar \
129 sal \
130 salhelper \
131 sax \
132 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
133 sc \
134 scaddins \
135 sccomp \
137 $(call gb_Helper_optional,DESKTOP,scp2) \
138 scripting \
139 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
140 sd \
141 sdext \
143 $(call gb_Helper_optional,DESKTOP,setup_native) \
144 sfx2 \
145 shell \
146 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
147 slideshow \
149 smoketest \
150 solenv \
151 soltools \
152 sot \
153 $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \
154 starmath \
156 $(if $(ENABLE_CUSTOMTARGET_COMPONENTS),static) \
157 stoc \
158 store \
159 svl \
160 svtools \
161 svgio \
162 emfio \
163 svx \
164 sw \
165 swext \
166 sysui \
167 test \
168 testtools \
169 toolkit \
170 tools \
171 ucb \
172 ucbhelper \
173 udkapi \
174 $(call gb_Helper_optional,PYUNO,uitest) \
175 UnoControls \
176 unodevtools \
177 unoil \
178 unoidl \
179 unotest \
180 unotools \
181 unoxml \
182 ure \
183 uui \
184 vbahelper \
185 vcl \
186 wizards \
187 writerfilter \
188 writerperfect \
189 xmerge \
190 $(call gb_Helper_optional,XMLHELP,xmlhelp) \
191 xmloff \
192 xmlreader \
193 xmlscript \
194 xmlsecurity \
197 ifeq (,$(DISABLE_DYNLOADING))
198 # Especially when building everything with symbols, the linking of the largest
199 # libraries takes enormous amounts of RAM. To prevent annoying OOM situations
200 # etc., try to prevent linking these in parallel by adding artificial build
201 # order dependencies here.
202 # Do this only if a linker is not explicitly set, as this should only apply
203 # to the BFD linker and any decently modern linker presumably performs better.
204 ifeq (,$(USE_LD))
205 define repositorymodule_serialize1
206 $(call gb_Library_get_linktarget_target,$(1)) :| $(foreach lib,$(2),$(call gb_Library_get_target,$(lib)))
207 endef
208 else
209 define repositorymodule_serialize1
210 endef
211 endif
213 define repositorymodule_serialize
214 $(if $(filter-out 0 1,$(words $(1))),\
215 $(call repositorymodule_serialize1,$(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))
216 $(if $(strip $(1)),\
217 $(call repositorymodule_serialize,$(wordlist 2,$(words $(1)),$(1))))
218 endef
220 # DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
221 # otherwise cyclic dependencies ruin everything.
222 # do not serialize on a partial build as that may fail due to missing deps.
223 # the default goal is build (see Module.mk)
224 ifeq (,$(filter-out build check unitcheck slowcheck screenshot subsequentcheck uicheck,$(MAKECMDGOALS)))
225 $(eval $(call repositorymodule_serialize,\
226 scfilt \
227 $(call gb_Helper_optional,SCRIPTING,vbaobj) \
228 sc msword \
229 $(call gb_Helper_optional,DESKTOP,swui) \
230 sw sd \
231 $(call gb_Helper_optional,DBCONNECTIVITY,dbu) \
232 writerfilter cui chartcontroller chartcore oox \
233 $(if $(MERGELIBS), merged, \
234 svx svxcore xo sfx fwk svt vcl) \
236 endif
237 endif # !$(DISABLE_DYNLOADING)
239 # vim: set noet sw=4 ts=4: