RepositoryModule_host.mk 4.37 KB
Newer Older
1
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 3
#
#
4
# This file is part of the LibreOffice project.
5
#
6 7 8
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 10 11
#


12
$(eval $(call gb_Module_Module,libreoffice))
13

14 15 16 17 18 19 20 21 22
# This makefile needs to be read first because some variables like T_LIBS
# for libmerged are cleared there and then later we append stuff to it
# through e.g. gb_Library_use_external for various libraries in libmerged.
ifneq ($(MERGELIBS),)
$(eval $(call gb_Module_add_targets,libreoffice,\
	Library_merged \
))
endif

23
$(eval $(call gb_Module_add_moduledirs,libreoffice,\
24
	accessibility \
25
	android \
26 27
	animations \
	apple_remote \
28
	$(call gb_Helper_optional,AVMEDIA,avmedia) \
29
	basctl \
30
	basegfx \
31 32
	basic \
	bean \
33
	binaryurp \
34
	bridges \
35 36
	canvas \
	chart2 \
37
	cli_ure \
38 39 40
	$(call gb_Helper_optional,DESKTOP,codemaker) \
	comphelper \
	configmgr \
41
	connectivity \
42
	cppcanvas \
43 44
	cppu \
	cppuhelper \
45
	cpputools \
46
	cui \
47
	$(call gb_Helper_optional,DBCONNECTIVITY,dbaccess) \
48 49 50 51 52 53
	desktop \
	$(call gb_Helper_optional,DICTIONARIES,dictionaries) \
	dtrans \
	drawinglayer \
	editeng \
	embeddedobj \
54
	embedserv \
55 56
	eventattacher \
	extensions \
57
	external \
David Tardon's avatar
David Tardon committed
58
	extras \
59
	filter \
60
	$(call gb_Helper_optional,DBCONNECTIVITY,forms) \
61
	formula \
62
	$(call gb_Helper_optional,DESKTOP,fpicker) \
63 64
	framework \
	$(call gb_Helper_optional,DESKTOP,helpcompiler) \
65
	$(call gb_Helper_optional,HELP,helpcontent2) \
66
	hwpfilter \
Eike Rathke's avatar
Eike Rathke committed
67
	i18nlangtag \
68
	i18npool \
69
	i18nutil \
70 71
	idl \
	$(call gb_Helper_optional,DESKTOP,idlc) \
72
	instsetoo_native \
David Tardon's avatar
David Tardon committed
73
	io \
74
	javaunohelper \
75 76 77
	jurt \
	jvmaccess \
	jvmfwk \
78
	librelogo \
79
	libreofficekit \
80 81 82 83 84
	lingucomponent \
	linguistic \
	lotuswordpro \
	$(call gb_Helper_optional,DESKTOP,l10ntools) \
	$(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
85
	o3tl \
86
	$(call gb_Helper_optional,ODK,odk) \
87 88
	offapi \
	officecfg \
89
	onlineupdate \
90 91
	oovbaapi \
	oox \
92
	$(call gb_Helper_optional,OPENCL,opencl) \
93
	package \
94
	postprocess \
95 96 97 98 99 100
	$(call gb_Helper_optional,PYUNO,pyuno) \
	$(call gb_Helper_optional,QADEVOOO,qadevOOo) \
	readlicense_oo \
	registry \
	remotebridges \
	reportbuilder \
101
	$(call gb_Helper_optional,DBCONNECTIVITY,reportdesign) \
102
	ridljar \
Peter Foley's avatar
Peter Foley committed
103
	sal \
104
	salhelper \
David Tardon's avatar
David Tardon committed
105
	sax \
106 107 108 109 110 111 112
	sc \
	scaddins \
	sccomp \
	$(call gb_Helper_optional,DESKTOP,scp2) \
	scripting \
	sd \
	sdext \
113
	$(call gb_Helper_optional,DESKTOP,setup_native) \
114 115 116 117
	sfx2 \
	shell \
	slideshow \
	smoketest \
Peter Foley's avatar
Peter Foley committed
118
	solenv \
119
	soltools \
120 121
	sot \
	starmath \
122 123
	stoc \
	store \
124 125
	svl \
	svtools \
126
	svgio \
127
	emfio \
128 129 130
	svx \
	sw \
	swext \
131
	sysui \
132 133 134
	test \
	testtools \
	toolkit \
David Tardon's avatar
David Tardon committed
135
	tools \
136
	ucb \
137 138
	ucbhelper \
	udkapi \
139
	$(call gb_Helper_optional,PYUNO,uitest) \
140 141
	UnoControls \
	unodevtools \
David Tardon's avatar
David Tardon committed
142
	unoil \
143
	unoidl \
144
	unotest \
145 146
	unotools \
	unoxml \
David Tardon's avatar
David Tardon committed
147
	ure \
148 149 150
	uui \
	vbahelper \
	vcl \
David Ostrovsky's avatar
David Ostrovsky committed
151
	winaccessibility \
152 153 154 155 156 157
	wizards \
	writerfilter \
	writerperfect \
	xmerge \
	$(call gb_Helper_optional,DESKTOP,xmlhelp) \
	xmloff \
158
	xmlreader \
159 160
	xmlscript \
	xmlsecurity \
161 162
))

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 166
# etc., try to prevent linking these in parallel by adding artificial build
# order dependencies here.
167
define repositorymodule_serialize1
168
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktarget,$(1))) \
169 170 171
	:| $(foreach lib,$(2),$(call gb_Library_get_target,$(lib)))
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 178
endef

179 180
# DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
# otherwise cyclic dependencies ruin everything.
181 182
# do not serialize on a partial build as that may fail due to missing deps.
# the default goal is all (see Module.mk)
183
ifeq (,$(filter-out all build check unitcheck slowcheck screenshot subsequentcheck uicheck,$(MAKECMDGOALS)))
184
$(eval $(call repositorymodule_serialize,\
185
	scfilt \
186
	$(call gb_Helper_optional,SCRIPTING,vbaobj) \
Tor Lillqvist's avatar
Tor Lillqvist committed
187 188 189
	sc msword \
	$(call gb_Helper_optional,DESKTOP,swui) \
	sw sd \
190
	$(call gb_Helper_optional,DBCONNECTIVITY,dbu) \
191 192 193
	writerfilter cui chartcontroller chartcore oox \
	$(if $(MERGELIBS), merged, \
		svx svxcore xo sfx fwk svt vcl) \
194
))
195
endif
196

Tor Lillqvist's avatar
Tor Lillqvist committed
197
# vim: set noet sw=4 ts=4: