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
,\
19 $(call gb_Helper_optional
,AVMEDIA
,avmedia
) \
30 $(call gb_Helper_optional
,DESKTOP
,codemaker
) \
33 $(call gb_Helper_optional
,DBCONNECTIVITY
,connectivity
) \
38 $(call gb_Helper_optional
,CRASHREP
,crashrep
) \
40 $(call gb_Helper_optional
,DBCONNECTIVITY
,dbaccess
) \
42 $(call gb_Helper_optional
,DICTIONARIES
,dictionaries
) \
53 $(call gb_Helper_optional
,DBCONNECTIVITY
,forms
) \
55 $(call gb_Helper_optional
,DESKTOP
,fpicker
) \
57 $(call gb_Helper_optional
,DESKTOP
,helpcompiler
) \
58 $(call gb_Helper_optional
,HELP
,helpcontent2
) \
64 $(call gb_Helper_optional
,DESKTOP
,idlc
) \
76 $(call gb_Helper_optional
,DESKTOP
,l10ntools
) \
77 $(call gb_Helper_optional
,MARIADBC
,mysqlc
) \
78 $(call gb_Helper_optional
,NLPSOLVER
,nlpsolver
) \
80 $(call gb_Helper_optional
,ODK
,odk
) \
87 $(call gb_Helper_optional
,PYUNO
,pyuno
) \
88 $(call gb_Helper_optional
,QADEVOOO
,qadevOOo
) \
93 $(call gb_Helper_optional
,DBCONNECTIVITY
,reportdesign
) \
102 $(call gb_Helper_optional
,DESKTOP
,scp2
) \
106 $(call gb_Helper_optional
,DESKTOP
,setup_native
) \
149 $(call gb_Helper_optional
,DESKTOP
,xmlhelp
) \
156 ifneq ($(MERGELIBS
),)
157 $(eval
$(call gb_Module_add_targets
,libreoffice
,\
159 $(if
$(URELIBS
),Library_urelibs
) \
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
)))
172 define repositorymodule_serialize
173 $(if
$(filter-out 0 1,$(words $(1))),\
174 $(call repositorymodule_serialize1
,$(firstword $(1)),$(wordlist
2,$(words $(1)),$(1))))
176 $(call repositorymodule_serialize
,$(wordlist
2,$(words $(1)),$(1))))
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
,\
186 $(call gb_Helper_optional
,SCRIPTING
,vbaobj
) \
188 $(call gb_Helper_optional
,DESKTOP
,swui
) \
190 $(call gb_Helper_optional
,DBCONNECTIVITY
,dbu
) \
191 writerfilter cui chartcontroller chartcore oox svx \
192 $(if
$(MERGELIBS
),merged
,svxcore
) \
197 # vim: set noet sw=4 ts=4: