blob: 80992dfed7e2391f017eacd170c12eb6e1677488 [file] [log] [blame]
Takeshi Abeb2bd33e2011-08-10 02:12:48 +09001# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -05002#
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -05003#
Michael Meeks62badf382013-04-19 21:10:42 +01004# This file is part of the LibreOffice project.
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -05005#
Michael Meeks62badf382013-04-19 21:10:42 +01006# 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/.
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -05009#
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -050010
11
Michael Stahl2ee838d2013-03-01 00:54:25 +010012$(eval $(call gb_Module_Module,libreoffice))
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -050013
Jan-Marek Glogowski368c9962019-06-24 08:47:57 +020014# These have to be included before the others for more_fonts dependencies
15$(eval $(call gb_Module_add_moduledirs,libreoffice,\
16 $(call gb_Helper_optional,MORE_FONTS,external/more_fonts) \
17 extras \
18))
19
20
Matúš Kukanb6be3d32014-12-15 13:49:08 +010021# This makefile needs to be read first because some variables like T_LIBS
22# for libmerged are cleared there and then later we append stuff to it
23# through e.g. gb_Library_use_external for various libraries in libmerged.
24ifneq ($(MERGELIBS),)
25$(eval $(call gb_Module_add_targets,libreoffice,\
26 Library_merged \
Matúš Kukanb6be3d32014-12-15 13:49:08 +010027))
28endif
29
Michael Stahl2ee838d2013-03-01 00:54:25 +010030$(eval $(call gb_Module_add_moduledirs,libreoffice,\
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050031 accessibility \
Peter Foley902fdf42013-02-28 19:56:43 -050032 android \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050033 animations \
34 apple_remote \
Tor Lillqvist262aa2c2014-04-17 22:09:44 +030035 $(call gb_Helper_optional,AVMEDIA,avmedia) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050036 basctl \
David Tardon5e4eee12012-05-24 12:00:51 +020037 basegfx \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050038 basic \
39 bean \
David Tardonfa871912012-05-24 12:11:58 +020040 binaryurp \
David Tardonf60ee812012-07-29 11:59:35 +020041 bridges \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050042 canvas \
43 chart2 \
David Tardonf60ee812012-07-29 11:59:35 +020044 cli_ure \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050045 $(call gb_Helper_optional,DESKTOP,codemaker) \
46 comphelper \
47 configmgr \
Caolán McNamara9d7315d2016-12-19 11:54:37 +000048 connectivity \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050049 cppcanvas \
David Tardonf60ee812012-07-29 11:59:35 +020050 cppu \
51 cppuhelper \
David Tardonabcab9d2012-05-24 12:13:37 +020052 cpputools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050053 cui \
Tor Lillqvist629cc602014-04-17 23:51:04 +030054 $(call gb_Helper_optional,DBCONNECTIVITY,dbaccess) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050055 desktop \
56 $(call gb_Helper_optional,DICTIONARIES,dictionaries) \
57 dtrans \
58 drawinglayer \
59 editeng \
60 embeddedobj \
David Tardone767cc772012-05-24 12:21:14 +020061 embedserv \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050062 eventattacher \
63 extensions \
Peter Foley61e7c592013-02-22 21:33:23 -050064 external \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050065 filter \
Tor Lillqvist739a5bc2014-04-28 17:29:27 +030066 $(call gb_Helper_optional,DBCONNECTIVITY,forms) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050067 formula \
Tor Lillqvist21e2f5b2014-05-07 13:52:47 +030068 $(call gb_Helper_optional,DESKTOP,fpicker) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050069 framework \
70 $(call gb_Helper_optional,DESKTOP,helpcompiler) \
David Tardonca3a1ae2013-02-27 10:11:27 +010071 $(call gb_Helper_optional,HELP,helpcontent2) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050072 hwpfilter \
Eike Rathke876c6192013-04-05 18:40:39 +020073 i18nlangtag \
David Tardond2f23a22012-05-24 11:59:16 +020074 i18npool \
David Tardonee28c182012-05-24 12:08:45 +020075 i18nutil \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050076 idl \
77 $(call gb_Helper_optional,DESKTOP,idlc) \
Bjoern Michaelsen87c57d82013-02-26 17:42:05 +010078 instsetoo_native \
David Tardon3018f4f2012-05-24 12:12:43 +020079 io \
David Tardon87e0c602012-05-24 12:15:38 +020080 javaunohelper \
David Tardonf60ee812012-07-29 11:59:35 +020081 jurt \
82 jvmaccess \
83 jvmfwk \
Andras Timar74abeff2012-11-07 23:31:44 +010084 librelogo \
Andrzej Hunt9a1b2972014-06-09 11:33:25 +010085 libreofficekit \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050086 lingucomponent \
87 linguistic \
88 lotuswordpro \
89 $(call gb_Helper_optional,DESKTOP,l10ntools) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050090 $(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
David Tardon5e4eee12012-05-24 12:00:51 +020091 o3tl \
Peter Foley613221b2013-02-21 00:56:13 -060092 $(call gb_Helper_optional,ODK,odk) \
David Tardonf60ee812012-07-29 11:59:35 +020093 offapi \
94 officecfg \
Nathan Yee07b10072015-06-22 11:01:15 -070095 onlineupdate \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050096 oovbaapi \
97 oox \
Tor Lillqvistc1d09b12014-11-26 22:30:33 +020098 $(call gb_Helper_optional,OPENCL,opencl) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050099 package \
Luboš Luňák08d02b52019-09-22 12:13:42 +0200100 pch \
Bjoern Michaelsenf6241442013-02-25 11:56:21 +0100101 postprocess \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500102 $(call gb_Helper_optional,PYUNO,pyuno) \
103 $(call gb_Helper_optional,QADEVOOO,qadevOOo) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500104 readlicense_oo \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500105 registry \
106 remotebridges \
107 reportbuilder \
Peter Foley10811502013-03-26 21:44:21 -0400108 $(call gb_Helper_optional,DBCONNECTIVITY,reportdesign) \
David Tardonf60ee812012-07-29 11:59:35 +0200109 ridljar \
Peter Foley42adaa02012-10-25 20:26:22 -0400110 sal \
David Tardonf60ee812012-07-29 11:59:35 +0200111 salhelper \
David Tardon0799823e2012-05-24 12:05:01 +0200112 sax \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500113 sc \
114 scaddins \
115 sccomp \
116 $(call gb_Helper_optional,DESKTOP,scp2) \
117 scripting \
118 sd \
119 sdext \
Peter Foley42617572013-02-07 19:17:22 -0500120 $(call gb_Helper_optional,DESKTOP,setup_native) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500121 sfx2 \
122 shell \
123 slideshow \
124 smoketest \
Peter Foley2ba90232013-02-24 16:02:08 -0500125 solenv \
Peter Foley61e7c592013-02-22 21:33:23 -0500126 soltools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500127 sot \
128 starmath \
David Tardonf60ee812012-07-29 11:59:35 +0200129 stoc \
130 store \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500131 svl \
132 svtools \
Michael Meeks44cfc7c2012-10-09 12:22:23 +0100133 svgio \
Armin Le Grand83535a22017-06-09 19:55:17 +0200134 emfio \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500135 svx \
136 sw \
137 swext \
Peter Foley01344a82013-02-10 18:22:07 -0500138 sysui \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500139 test \
140 testtools \
141 toolkit \
David Tardond7767f62012-05-24 11:56:50 +0200142 tools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500143 ucb \
David Tardonf60ee812012-07-29 11:59:35 +0200144 ucbhelper \
David Tardonf60ee812012-07-29 11:59:35 +0200145 udkapi \
Markus Mohrhard3ead72d2016-05-09 10:05:14 +0200146 $(call gb_Helper_optional,PYUNO,uitest) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500147 UnoControls \
148 unodevtools \
David Tardon1d5c70b2012-05-24 12:17:24 +0200149 unoil \
Stephan Bergmann320571b2013-02-25 15:31:05 +0100150 unoidl \
David Tardon77fa4ee2012-05-24 12:02:36 +0200151 unotest \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500152 unotools \
153 unoxml \
David Tardon6b78dd32012-05-24 12:10:14 +0200154 ure \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500155 uui \
156 vbahelper \
157 vcl \
David Ostrovsky130833f2013-11-26 15:05:51 +0100158 winaccessibility \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500159 wizards \
160 writerfilter \
161 writerperfect \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500162 xmerge \
163 $(call gb_Helper_optional,DESKTOP,xmlhelp) \
164 xmloff \
David Tardonf60ee812012-07-29 11:59:35 +0200165 xmlreader \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500166 xmlscript \
167 xmlsecurity \
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -0500168))
169
Michael Stahl6d1cef52012-05-15 19:34:46 +0200170# Especially when building everything with symbols, the linking of the largest
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500171# libraries takes enormous amounts of RAM. To prevent annoying OOM situations
Michael Stahl6d1cef52012-05-15 19:34:46 +0200172# etc., try to prevent linking these in parallel by adding artificial build
173# order dependencies here.
Michael Stahl2ee838d2013-03-01 00:54:25 +0100174define repositorymodule_serialize1
Michael Stahl5905dfe2013-09-16 12:13:02 +0200175$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktarget,$(1))) \
Michael Stahl6d1cef52012-05-15 19:34:46 +0200176 :| $(foreach lib,$(2),$(call gb_Library_get_target,$(lib)))
177endef
178
Michael Stahl2ee838d2013-03-01 00:54:25 +0100179define repositorymodule_serialize
Michael Stahl6d1cef52012-05-15 19:34:46 +0200180$(if $(filter-out 0 1,$(words $(1))),\
Michael Stahl2ee838d2013-03-01 00:54:25 +0100181$(call repositorymodule_serialize1,$(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200182$(if $(strip $(1)),\
Michael Stahl2ee838d2013-03-01 00:54:25 +0100183$(call repositorymodule_serialize,$(wordlist 2,$(words $(1)),$(1))))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200184endef
185
Michael Stahlc70e55c2013-05-31 23:09:20 +0200186# DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
187# otherwise cyclic dependencies ruin everything.
Michael Stahlc4f7ed82013-05-31 23:02:33 +0200188# do not serialize on a partial build as that may fail due to missing deps.
189# the default goal is all (see Module.mk)
Armin Le Grandce6cbf82016-08-17 09:43:33 +0200190ifeq (,$(filter-out all build check unitcheck slowcheck screenshot subsequentcheck uicheck,$(MAKECMDGOALS)))
Michael Stahl2ee838d2013-03-01 00:54:25 +0100191$(eval $(call repositorymodule_serialize,\
Peter Foley2d8514572014-09-11 18:05:01 -0400192 scfilt \
Tor Lillqvist7f564cc2014-02-19 16:08:26 +0200193 $(call gb_Helper_optional,SCRIPTING,vbaobj) \
Tor Lillqvist32e53702014-02-19 15:49:55 +0200194 sc msword \
195 $(call gb_Helper_optional,DESKTOP,swui) \
196 sw sd \
Tor Lillqvist7f564cc2014-02-19 16:08:26 +0200197 $(call gb_Helper_optional,DBCONNECTIVITY,dbu) \
Matúš Kukan7b32c5f2015-01-31 18:57:13 +0100198 writerfilter cui chartcontroller chartcore oox \
199 $(if $(MERGELIBS), merged, \
200 svx svxcore xo sfx fwk svt vcl) \
Michael Meeks88880512012-07-11 09:54:22 +0100201))
Matúš Kukanf1835782012-08-09 10:35:24 +0200202endif
Michael Stahl6d1cef52012-05-15 19:34:46 +0200203
Tor Lillqvist35491072011-08-02 21:22:35 +0300204# vim: set noet sw=4 ts=4: