Bump version to 4.3-4
[LibreOffice.git] / RepositoryModule_host.mk
blob1ba50ecbd9524ad4c71e5cac36b2664899dd3937
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 $(eval $(call gb_Module_add_moduledirs,libreoffice,\
15 accessibility \
16 android \
17 animations \
18 apple_remote \
19 $(call gb_Helper_optional,AVMEDIA,avmedia) \
20 basctl \
21 basebmp \
22 basegfx \
23 basic \
24 bean \
25 binaryurp \
26 bridges \
27 canvas \
28 chart2 \
29 cli_ure \
30 $(call gb_Helper_optional,DESKTOP,codemaker) \
31 comphelper \
32 configmgr \
33 $(call gb_Helper_optional,DBCONNECTIVITY,connectivity) \
34 cppcanvas \
35 cppu \
36 cppuhelper \
37 cpputools \
38 $(call gb_Helper_optional,CRASHREP,crashrep) \
39 cui \
40 $(call gb_Helper_optional,DBCONNECTIVITY,dbaccess) \
41 desktop \
42 $(call gb_Helper_optional,DICTIONARIES,dictionaries) \
43 dtrans \
44 drawinglayer \
45 editeng \
46 embeddedobj \
47 embedserv \
48 eventattacher \
49 extensions \
50 external \
51 extras \
52 filter \
53 $(call gb_Helper_optional,DBCONNECTIVITY,forms) \
54 formula \
55 $(call gb_Helper_optional,DESKTOP,fpicker) \
56 framework \
57 $(call gb_Helper_optional,DESKTOP,helpcompiler) \
58 $(call gb_Helper_optional,HELP,helpcontent2) \
59 hwpfilter \
60 i18nlangtag \
61 i18npool \
62 i18nutil \
63 idl \
64 $(call gb_Helper_optional,DESKTOP,idlc) \
65 instsetoo_native \
66 io \
67 javaunohelper \
68 jurt \
69 jvmaccess \
70 jvmfwk \
71 librelogo \
72 libreofficekit \
73 lingucomponent \
74 linguistic \
75 lotuswordpro \
76 $(call gb_Helper_optional,DESKTOP,l10ntools) \
77 $(call gb_Helper_optional,MARIADBC,mysqlc) \
78 $(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
79 o3tl \
80 $(call gb_Helper_optional,ODK,odk) \
81 offapi \
82 officecfg \
83 oovbaapi \
84 oox \
85 package \
86 postprocess \
87 $(call gb_Helper_optional,PYUNO,pyuno) \
88 $(call gb_Helper_optional,QADEVOOO,qadevOOo) \
89 readlicense_oo \
90 registry \
91 remotebridges \
92 reportbuilder \
93 $(call gb_Helper_optional,DBCONNECTIVITY,reportdesign) \
94 ridljar \
95 rsc \
96 sal \
97 salhelper \
98 sax \
99 sc \
100 scaddins \
101 sccomp \
102 $(call gb_Helper_optional,DESKTOP,scp2) \
103 scripting \
104 sd \
105 sdext \
106 $(call gb_Helper_optional,DESKTOP,setup_native) \
107 sfx2 \
108 shell \
109 slideshow \
110 smoketest \
111 solenv \
112 soltools \
113 sot \
114 starmath \
115 stoc \
116 store \
117 svl \
118 svtools \
119 svgio \
120 svx \
121 sw \
122 swext \
123 sysui \
124 test \
125 testtools \
126 toolkit \
127 tools \
128 touch \
129 tubes \
130 ucb \
131 ucbhelper \
132 udkapi \
133 UnoControls \
134 unodevtools \
135 unoil \
136 unoidl \
137 unotest \
138 unotools \
139 unoxml \
140 ure \
141 uui \
142 vbahelper \
143 vcl \
144 winaccessibility \
145 wizards \
146 writerfilter \
147 writerperfect \
148 xmerge \
149 $(call gb_Helper_optional,DESKTOP,xmlhelp) \
150 xmloff \
151 xmlreader \
152 xmlscript \
153 xmlsecurity \
156 ifneq ($(MERGELIBS),)
157 $(eval $(call gb_Module_add_targets,libreoffice,\
158 Library_merged \
159 $(if $(URELIBS),Library_urelibs) \
161 endif
163 # Especially when building everything with symbols, the linking of the largest
164 # libraries takes enormous amounts of RAM. To prevent annoying OOM situations
165 # etc., try to prevent linking these in parallel by adding artificial build
166 # order dependencies here.
167 define repositorymodule_serialize1
168 $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktarget,$(1))) \
169 :| $(foreach lib,$(2),$(call gb_Library_get_target,$(lib)))
170 endef
172 define repositorymodule_serialize
173 $(if $(filter-out 0 1,$(words $(1))),\
174 $(call repositorymodule_serialize1,$(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))
175 $(if $(strip $(1)),\
176 $(call repositorymodule_serialize,$(wordlist 2,$(words $(1)),$(1))))
177 endef
179 # DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
180 # otherwise cyclic dependencies ruin everything.
181 # do not serialize on a partial build as that may fail due to missing deps.
182 # the default goal is all (see Module.mk)
183 ifeq (,$(filter-out all build check unitcheck slowcheck subsequentcheck,$(MAKECMDGOALS)))
184 $(eval $(call repositorymodule_serialize,\
185 scfilt scopencl \
186 $(call gb_Helper_optional,SCRIPTING,vbaobj) \
187 sc msword \
188 $(call gb_Helper_optional,DESKTOP,swui) \
189 sw sd \
190 $(call gb_Helper_optional,DBCONNECTIVITY,dbu) \
191 writerfilter cui chartcontroller chartcore oox svx \
192 $(if $(MERGELIBS),merged,svxcore) \
193 xo sfx fwk svt vcl \
195 endif
197 # vim: set noet sw=4 ts=4: