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
,\
16 $(call gb_Helper_optional
,AFMS
,afms
) \
19 $(call gb_Helper_optional
,APACHE_COMMONS
,apache-commons
) \
28 $(call gb_Helper_optional
,BOOST
,boost
) \
29 $(call gb_Helper_optional
,BSH
,beanshell
) \
32 $(call gb_Helper_optional
,CAIRO
,cairo
) \
36 $(call gb_Helper_optional
,CLUCENE
,clucene
) \
37 $(call gb_Helper_optional
,DESKTOP
,codemaker
) \
40 $(call gb_Helper_optional
,DBCONNECTIVITY
,connectivity
) \
45 $(call gb_Helper_optional
,CPPUNIT
,cppunit
) \
47 $(call gb_Helper_optional
,CRASHREP
,crashrep
) \
48 $(call gb_Helper_optional
,CT2N
,ct2n
) \
50 $(call gb_Helper_optional
,CURL
,curl
) \
53 $(call gb_Helper_optional
,DICTIONARIES
,dictionaries
) \
59 $(call gb_Helper_optional
,EPM
,epm
) \
61 $(call gb_Helper_optional
,EXPAT
,expat
) \
67 $(call gb_Helper_optional
,FONTCONFIG
,fontconfig
) \
68 $(call gb_Helper_optional
,DBCONNECTIVITY
,forms
) \
72 $(call gb_Helper_optional
,FREETYPE
,freetype
) \
73 $(call gb_Helper_optional
,GRAPHITE
,graphite
) \
74 $(call gb_Helper_optional
,HARFBUZZ
,harfbuzz
) \
75 $(call gb_Helper_optional
,DESKTOP
,helpcompiler
) \
76 $(call gb_Helper_optional
,HELP
,helpcontent2
) \
77 $(call gb_Helper_optional
,HSQLDB
,hsqldb
) \
78 $(call gb_Helper_optional
,HUNSPELL
,hunspell
) \
80 $(call gb_Helper_optional
,HYPHEN
,hyphen
) \
84 $(call gb_Helper_optional
,ICU
,icu
) \
86 $(call gb_Helper_optional
,DESKTOP
,idlc
) \
90 $(call gb_Helper_optional
,JFREEREPORT
,jfreereport
) \
91 $(call gb_Helper_optional
,JPEG
,jpeg
) \
95 $(call gb_Helper_optional
,LANGUAGETOOL
,languagetool
) \
96 $(call gb_Helper_optional
,LCMS2
,lcms2
) \
97 $(call gb_Helper_optional
,CDR
,libcdr
) \
98 $(call gb_Helper_optional
,CMIS
,libcmis
) \
99 $(call gb_Helper_optional
,LIBEXTTEXTCAT
,libexttextcat
) \
100 $(call gb_Helper_optional
,LIBLANGTAG
,liblangtag
) \
101 $(call gb_Helper_optional
,LIBPNG
,libpng
) \
102 $(call gb_Helper_optional
,MSPUB
,libmspub
) \
103 $(call gb_Helper_optional
,MWAW
,libmwaw
) \
104 $(call gb_Helper_optional
,ODFGEN
,libodfgen
) \
105 $(call gb_Helper_optional
,ORCUS
,liborcus
) \
107 $(call gb_Helper_optional
,VISIO
,libvisio
) \
108 $(call gb_Helper_optional
,WPD
,libwpd
) \
109 $(call gb_Helper_optional
,WPG
,libwpg
) \
110 $(call gb_Helper_optional
,WPS
,libwps
) \
111 $(call gb_Helper_optional
,LIBXML2
,libxml2
) \
113 $(call gb_Helper_optional
,LIBXSLT
,libxslt
) \
117 $(call gb_Helper_optional
,LPSOLVE
,lpsolve
) \
118 $(call gb_Helper_optional
,DESKTOP
,l10ntools
) \
119 $(call gb_Helper_optional
,MARIADB
,libmariadb
) \
120 $(call gb_Helper_optional
,MDDS
,mdds
) \
121 $(call gb_Helper_optional
,MORE_FONTS
,more_fonts
) \
122 $(call gb_Helper_optional
,MOZ
,moz
) \
123 $(call gb_Helper_optional
,MARIADBC
,mysqlc
) \
124 $(call gb_Helper_optional
,MYSQLCPPCONN
,mysqlcppconn
) \
125 $(call gb_Helper_optional
,MYTHES
,mythes
) \
126 $(call gb_Helper_optional
,NEON
,neon
) \
127 $(call gb_Helper_optional
,NLPSOLVER
,nlpsolver
) \
129 $(call gb_Helper_optional
,NSS
,nss
) \
131 $(call gb_Helper_optional
,ODK
,odk
) \
136 $(call gb_Helper_optional
,OPENLDAP
,openldap
) \
137 $(call gb_Helper_optional
,OPENSSL
,openssl
) \
140 $(call gb_Helper_optional
,POSTGRESQL
,postgresql
) \
143 $(call gb_Helper_optional
,PYTHON
,python3
) \
144 $(call gb_Helper_optional
,PYUNO
,pyuno
) \
145 $(call gb_Helper_optional
,QADEVOOO
,qadevOOo
) \
147 $(call gb_Helper_optional
,REDLAND
,redland
) \
151 $(call gb_Helper_optional
,DBCONNECTIVITY
,reportdesign
) \
152 $(call gb_Helper_optional
,RHINO
,rhino
) \
161 $(call gb_Helper_optional
,DESKTOP
,scp2
) \
165 $(call gb_Helper_optional
,DESKTOP
,setup_native
) \
185 $(call gb_Helper_optional
,TOMCAT
,tomcat
) \
192 $(call gb_Helper_optional
,UCPP
,ucpp
) \
206 $(call gb_Helper_optional
,VIGRA
,vigra
) \
211 $(call gb_Helper_optional
,DESKTOP
,xmlhelp
) \
213 $(call gb_Helper_optional
,XPDF
,xpdf
) \
217 $(call gb_Helper_optional
,XSLTML
,xsltml
) \
218 $(call gb_Helper_optional
,ZLIB
,zlib
) \
221 ifneq ($(MERGELIBS
),)
222 $(eval
$(call gb_Module_add_targets
,libreoffice
,\
224 $(if
$(URELIBS
),Library_urelibs
) \
228 # Especially when building everything with symbols, the linking of the largest
229 # libraries takes enormous amounts of RAM. To prevent annoying OOM situations
230 # etc., try to prevent linking these in parallel by adding artificial build
231 # order dependencies here.
232 define repositorymodule_serialize1
233 $(call gb_LinkTarget_get_target
,$(call gb_Library_get_linktargetname
,$(1))) \
234 :|
$(foreach lib
,$(2),$(call gb_Library_get_target
,$(lib
)))
237 define repositorymodule_serialize
238 $(if
$(filter-out 0 1,$(words $(1))),\
239 $(call repositorymodule_serialize1
,$(firstword $(1)),$(wordlist
2,$(words $(1)),$(1))))
241 $(call repositorymodule_serialize
,$(wordlist
2,$(words $(1)),$(1))))
244 # DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
245 # otherwise cyclic dependencies ruin everything.
246 # do not serialize on a partial build as that may fail due to missing deps.
247 # the default goal is all (see Module.mk)
248 ifeq (,$(filter-out all,$(MAKECMDGOALS
)))
249 $(eval
$(call repositorymodule_serialize
,\
251 $(if
$(filter SCRIPTING
,$(BUILD_TYPE
)),vbaobj
) \
252 sc msword swui sw sd \
253 $(if
$(filter DBCONNECTIVITY
,$(BUILD_TYPE
)),dbu
) \
254 writerfilter cui chartcontroller chartcore oox svx \
255 $(if
$(MERGELIBS
),merged
,svxcore
) \
260 # vim: set noet sw=4 ts=4: