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.
18 $(eval
$(call gb_Module_add_targets
,libreoffice
,\
20 $(if
$(URELIBS
),Library_urelibs
) \
24 $(eval
$(call gb_Module_add_moduledirs
,libreoffice
,\
29 $(call gb_Helper_optional
,AVMEDIA
,avmedia
) \
39 $(call gb_Helper_optional
,OPENCL
,clew
) \
41 $(call gb_Helper_optional
,DESKTOP
,codemaker
) \
44 $(call gb_Helper_optional
,DBCONNECTIVITY
,connectivity
) \
49 $(call gb_Helper_optional
,CRASHREP
,crashrep
) \
51 $(call gb_Helper_optional
,DBCONNECTIVITY
,dbaccess
) \
53 $(call gb_Helper_optional
,DICTIONARIES
,dictionaries
) \
64 $(call gb_Helper_optional
,DBCONNECTIVITY
,forms
) \
66 $(call gb_Helper_optional
,DESKTOP
,fpicker
) \
68 $(call gb_Helper_optional
,DESKTOP
,helpcompiler
) \
69 $(call gb_Helper_optional
,HELP
,helpcontent2
) \
75 $(call gb_Helper_optional
,DESKTOP
,idlc
) \
87 $(call gb_Helper_optional
,DESKTOP
,l10ntools
) \
88 $(call gb_Helper_optional
,MARIADBC
,mysqlc
) \
89 $(call gb_Helper_optional
,NLPSOLVER
,nlpsolver
) \
91 $(call gb_Helper_optional
,ODK
,odk
) \
96 $(call gb_Helper_optional
,OPENCL
,opencl
) \
99 $(call gb_Helper_optional
,PYUNO
,pyuno
) \
100 $(call gb_Helper_optional
,QADEVOOO
,qadevOOo
) \
105 $(call gb_Helper_optional
,DBCONNECTIVITY
,reportdesign
) \
114 $(call gb_Helper_optional
,DESKTOP
,scp2
) \
118 $(call gb_Helper_optional
,DESKTOP
,setup_native
) \
161 $(call gb_Helper_optional
,DESKTOP
,xmlhelp
) \
168 # Especially when building everything with symbols, the linking of the largest
169 # libraries takes enormous amounts of RAM. To prevent annoying OOM situations
170 # etc., try to prevent linking these in parallel by adding artificial build
171 # order dependencies here.
172 define repositorymodule_serialize1
173 $(call gb_LinkTarget_get_target
,$(call gb_Library_get_linktarget
,$(1))) \
174 :|
$(foreach lib
,$(2),$(call gb_Library_get_target
,$(lib
)))
177 define repositorymodule_serialize
178 $(if
$(filter-out 0 1,$(words $(1))),\
179 $(call repositorymodule_serialize1
,$(firstword $(1)),$(wordlist
2,$(words $(1)),$(1))))
181 $(call repositorymodule_serialize
,$(wordlist
2,$(words $(1)),$(1))))
184 # DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
185 # otherwise cyclic dependencies ruin everything.
186 # do not serialize on a partial build as that may fail due to missing deps.
187 # the default goal is all (see Module.mk)
188 ifeq (,$(filter-out all build
check unitcheck slowcheck subsequentcheck
,$(MAKECMDGOALS
)))
189 $(eval
$(call repositorymodule_serialize
,\
191 $(call gb_Helper_optional
,SCRIPTING
,vbaobj
) \
193 $(call gb_Helper_optional
,DESKTOP
,swui
) \
195 $(call gb_Helper_optional
,DBCONNECTIVITY
,dbu
) \
196 writerfilter cui chartcontroller chartcore oox svx \
197 $(if
$(MERGELIBS
),merged
,svxcore
) \
202 # vim: set noet sw=4 ts=4: