blob: 51feb0b9125fa2f9413e9d0a1103c5c03ad06c7d [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
Matúš Kukanb6be3d32014-12-15 13:49:08 +010014# 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.
17ifneq ($(MERGELIBS),)
18$(eval $(call gb_Module_add_targets,libreoffice,\
19 Library_merged \
Matúš Kukanb6be3d32014-12-15 13:49:08 +010020))
21endif
22
Michael Stahl2ee838d2013-03-01 00:54:25 +010023$(eval $(call gb_Module_add_moduledirs,libreoffice,\
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050024 accessibility \
Peter Foley902fdf42013-02-28 19:56:43 -050025 android \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050026 animations \
27 apple_remote \
Tor Lillqvist262aa2c2014-04-17 22:09:44 +030028 $(call gb_Helper_optional,AVMEDIA,avmedia) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050029 basctl \
David Tardon5e4eee12012-05-24 12:00:51 +020030 basegfx \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050031 basic \
32 bean \
David Tardonfa871912012-05-24 12:11:58 +020033 binaryurp \
David Tardonf60ee812012-07-29 11:59:35 +020034 bridges \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050035 canvas \
36 chart2 \
David Tardonf60ee812012-07-29 11:59:35 +020037 cli_ure \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050038 $(call gb_Helper_optional,DESKTOP,codemaker) \
39 comphelper \
40 configmgr \
Caolán McNamara9d7315d2016-12-19 11:54:37 +000041 connectivity \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050042 cppcanvas \
David Tardonf60ee812012-07-29 11:59:35 +020043 cppu \
44 cppuhelper \
David Tardonabcab9d2012-05-24 12:13:37 +020045 cpputools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050046 cui \
Tor Lillqvist629cc602014-04-17 23:51:04 +030047 $(call gb_Helper_optional,DBCONNECTIVITY,dbaccess) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050048 desktop \
49 $(call gb_Helper_optional,DICTIONARIES,dictionaries) \
50 dtrans \
51 drawinglayer \
52 editeng \
53 embeddedobj \
David Tardone767cc772012-05-24 12:21:14 +020054 embedserv \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050055 eventattacher \
56 extensions \
Peter Foley61e7c592013-02-22 21:33:23 -050057 external \
David Tardon04e69632012-08-22 13:16:39 +020058 extras \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050059 filter \
Tor Lillqvist739a5bc2014-04-28 17:29:27 +030060 $(call gb_Helper_optional,DBCONNECTIVITY,forms) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050061 formula \
Tor Lillqvist21e2f5b2014-05-07 13:52:47 +030062 $(call gb_Helper_optional,DESKTOP,fpicker) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050063 framework \
64 $(call gb_Helper_optional,DESKTOP,helpcompiler) \
David Tardonca3a1ae2013-02-27 10:11:27 +010065 $(call gb_Helper_optional,HELP,helpcontent2) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050066 hwpfilter \
Eike Rathke876c6192013-04-05 18:40:39 +020067 i18nlangtag \
David Tardond2f23a22012-05-24 11:59:16 +020068 i18npool \
David Tardonee28c182012-05-24 12:08:45 +020069 i18nutil \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050070 idl \
71 $(call gb_Helper_optional,DESKTOP,idlc) \
Bjoern Michaelsen87c57d82013-02-26 17:42:05 +010072 instsetoo_native \
David Tardon3018f4f2012-05-24 12:12:43 +020073 io \
David Tardon87e0c602012-05-24 12:15:38 +020074 javaunohelper \
David Tardonf60ee812012-07-29 11:59:35 +020075 jurt \
76 jvmaccess \
77 jvmfwk \
Andras Timar74abeff2012-11-07 23:31:44 +010078 librelogo \
Andrzej Hunt9a1b2972014-06-09 11:33:25 +010079 libreofficekit \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050080 lingucomponent \
81 linguistic \
82 lotuswordpro \
83 $(call gb_Helper_optional,DESKTOP,l10ntools) \
Rene Engelhardb6e4c0e2013-03-10 17:30:16 +010084 $(call gb_Helper_optional,MARIADBC,mysqlc) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050085 $(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
David Tardon5e4eee12012-05-24 12:00:51 +020086 o3tl \
Peter Foley613221b2013-02-21 00:56:13 -060087 $(call gb_Helper_optional,ODK,odk) \
David Tardonf60ee812012-07-29 11:59:35 +020088 offapi \
89 officecfg \
Nathan Yee07b10072015-06-22 11:01:15 -070090 onlineupdate \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050091 oovbaapi \
92 oox \
Tor Lillqvistc1d09b12014-11-26 22:30:33 +020093 $(call gb_Helper_optional,OPENCL,opencl) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050094 package \
Bjoern Michaelsenf6241442013-02-25 11:56:21 +010095 postprocess \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050096 $(call gb_Helper_optional,PYUNO,pyuno) \
97 $(call gb_Helper_optional,QADEVOOO,qadevOOo) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050098 readlicense_oo \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050099 registry \
100 remotebridges \
101 reportbuilder \
Peter Foley10811502013-03-26 21:44:21 -0400102 $(call gb_Helper_optional,DBCONNECTIVITY,reportdesign) \
David Tardonf60ee812012-07-29 11:59:35 +0200103 ridljar \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500104 rsc \
Peter Foley42adaa02012-10-25 20:26:22 -0400105 sal \
David Tardonf60ee812012-07-29 11:59:35 +0200106 salhelper \
David Tardon0799823e2012-05-24 12:05:01 +0200107 sax \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500108 sc \
109 scaddins \
110 sccomp \
111 $(call gb_Helper_optional,DESKTOP,scp2) \
112 scripting \
113 sd \
114 sdext \
Peter Foley42617572013-02-07 19:17:22 -0500115 $(call gb_Helper_optional,DESKTOP,setup_native) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500116 sfx2 \
117 shell \
118 slideshow \
119 smoketest \
Peter Foley2ba90232013-02-24 16:02:08 -0500120 solenv \
Peter Foley61e7c592013-02-22 21:33:23 -0500121 soltools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500122 sot \
123 starmath \
David Tardonf60ee812012-07-29 11:59:35 +0200124 stoc \
125 store \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500126 svl \
127 svtools \
Michael Meeks44cfc7c2012-10-09 12:22:23 +0100128 svgio \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500129 svx \
130 sw \
131 swext \
Peter Foley01344a82013-02-10 18:22:07 -0500132 sysui \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500133 test \
134 testtools \
135 toolkit \
David Tardond7767f62012-05-24 11:56:50 +0200136 tools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500137 ucb \
David Tardonf60ee812012-07-29 11:59:35 +0200138 ucbhelper \
David Tardonf60ee812012-07-29 11:59:35 +0200139 udkapi \
Markus Mohrhard3ead72d2016-05-09 10:05:14 +0200140 $(call gb_Helper_optional,PYUNO,uitest) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500141 UnoControls \
142 unodevtools \
David Tardon1d5c70b2012-05-24 12:17:24 +0200143 unoil \
Stephan Bergmann320571b2013-02-25 15:31:05 +0100144 unoidl \
David Tardon77fa4ee2012-05-24 12:02:36 +0200145 unotest \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500146 unotools \
147 unoxml \
David Tardon6b78dd32012-05-24 12:10:14 +0200148 ure \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500149 uui \
150 vbahelper \
151 vcl \
David Ostrovsky130833f2013-11-26 15:05:51 +0100152 winaccessibility \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500153 wizards \
154 writerfilter \
155 writerperfect \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500156 xmerge \
157 $(call gb_Helper_optional,DESKTOP,xmlhelp) \
158 xmloff \
David Tardonf60ee812012-07-29 11:59:35 +0200159 xmlreader \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500160 xmlscript \
161 xmlsecurity \
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -0500162))
163
Michael Stahl6d1cef52012-05-15 19:34:46 +0200164# Especially when building everything with symbols, the linking of the largest
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500165# libraries takes enormous amounts of RAM. To prevent annoying OOM situations
Michael Stahl6d1cef52012-05-15 19:34:46 +0200166# etc., try to prevent linking these in parallel by adding artificial build
167# order dependencies here.
Michael Stahl2ee838d2013-03-01 00:54:25 +0100168define repositorymodule_serialize1
Michael Stahl5905dfe2013-09-16 12:13:02 +0200169$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktarget,$(1))) \
Michael Stahl6d1cef52012-05-15 19:34:46 +0200170 :| $(foreach lib,$(2),$(call gb_Library_get_target,$(lib)))
171endef
172
Michael Stahl2ee838d2013-03-01 00:54:25 +0100173define repositorymodule_serialize
Michael Stahl6d1cef52012-05-15 19:34:46 +0200174$(if $(filter-out 0 1,$(words $(1))),\
Michael Stahl2ee838d2013-03-01 00:54:25 +0100175$(call repositorymodule_serialize1,$(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200176$(if $(strip $(1)),\
Michael Stahl2ee838d2013-03-01 00:54:25 +0100177$(call repositorymodule_serialize,$(wordlist 2,$(words $(1)),$(1))))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200178endef
179
Michael Stahlc70e55c2013-05-31 23:09:20 +0200180# DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
181# otherwise cyclic dependencies ruin everything.
Michael Stahlc4f7ed82013-05-31 23:02:33 +0200182# do not serialize on a partial build as that may fail due to missing deps.
183# the default goal is all (see Module.mk)
Armin Le Grandce6cbf82016-08-17 09:43:33 +0200184ifeq (,$(filter-out all build check unitcheck slowcheck screenshot subsequentcheck uicheck,$(MAKECMDGOALS)))
Michael Stahl2ee838d2013-03-01 00:54:25 +0100185$(eval $(call repositorymodule_serialize,\
Peter Foley2d8514572014-09-11 18:05:01 -0400186 scfilt \
Tor Lillqvist7f564cc2014-02-19 16:08:26 +0200187 $(call gb_Helper_optional,SCRIPTING,vbaobj) \
Tor Lillqvist32e53702014-02-19 15:49:55 +0200188 sc msword \
189 $(call gb_Helper_optional,DESKTOP,swui) \
190 sw sd \
Tor Lillqvist7f564cc2014-02-19 16:08:26 +0200191 $(call gb_Helper_optional,DBCONNECTIVITY,dbu) \
Matúš Kukan7b32c5f2015-01-31 18:57:13 +0100192 writerfilter cui chartcontroller chartcore oox \
193 $(if $(MERGELIBS), merged, \
194 svx svxcore xo sfx fwk svt vcl) \
Michael Meeks88880512012-07-11 09:54:22 +0100195))
Matúš Kukanf1835782012-08-09 10:35:24 +0200196endif
Michael Stahl6d1cef52012-05-15 19:34:46 +0200197
Tor Lillqvist35491072011-08-02 21:22:35 +0300198# vim: set noet sw=4 ts=4: