blob: b215316d70a15326254ca2af6446695cf1ca8563 [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 \
30 basebmp \
David Tardon5e4eee12012-05-24 12:00:51 +020031 basegfx \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050032 basic \
33 bean \
David Tardonfa871912012-05-24 12:11:58 +020034 binaryurp \
David Tardonf60ee812012-07-29 11:59:35 +020035 bridges \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050036 canvas \
37 chart2 \
Tor Lillqvistbf6544c02014-12-08 09:29:28 +020038 $(call gb_Helper_optional,OPENCL,clew) \
David Tardonf60ee812012-07-29 11:59:35 +020039 cli_ure \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050040 $(call gb_Helper_optional,DESKTOP,codemaker) \
41 comphelper \
42 configmgr \
Peter Foley8042b5212013-03-26 20:53:13 -040043 $(call gb_Helper_optional,DBCONNECTIVITY,connectivity) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050044 cppcanvas \
David Tardonf60ee812012-07-29 11:59:35 +020045 cppu \
46 cppuhelper \
David Tardonabcab9d2012-05-24 12:13:37 +020047 cpputools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050048 cui \
Tor Lillqvist629cc602014-04-17 23:51:04 +030049 $(call gb_Helper_optional,DBCONNECTIVITY,dbaccess) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050050 desktop \
51 $(call gb_Helper_optional,DICTIONARIES,dictionaries) \
52 dtrans \
53 drawinglayer \
54 editeng \
55 embeddedobj \
David Tardone767cc772012-05-24 12:21:14 +020056 embedserv \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050057 eventattacher \
58 extensions \
Peter Foley61e7c592013-02-22 21:33:23 -050059 external \
David Tardon04e69632012-08-22 13:16:39 +020060 extras \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050061 filter \
Tor Lillqvist739a5bc2014-04-28 17:29:27 +030062 $(call gb_Helper_optional,DBCONNECTIVITY,forms) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050063 formula \
Tor Lillqvist21e2f5b2014-05-07 13:52:47 +030064 $(call gb_Helper_optional,DESKTOP,fpicker) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050065 framework \
66 $(call gb_Helper_optional,DESKTOP,helpcompiler) \
David Tardonca3a1ae2013-02-27 10:11:27 +010067 $(call gb_Helper_optional,HELP,helpcontent2) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050068 hwpfilter \
Eike Rathke876c6192013-04-05 18:40:39 +020069 i18nlangtag \
David Tardond2f23a22012-05-24 11:59:16 +020070 i18npool \
David Tardonee28c182012-05-24 12:08:45 +020071 i18nutil \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050072 idl \
73 $(call gb_Helper_optional,DESKTOP,idlc) \
Bjoern Michaelsen87c57d82013-02-26 17:42:05 +010074 instsetoo_native \
David Tardon3018f4f2012-05-24 12:12:43 +020075 io \
David Tardon87e0c602012-05-24 12:15:38 +020076 javaunohelper \
David Tardonf60ee812012-07-29 11:59:35 +020077 jurt \
78 jvmaccess \
79 jvmfwk \
Andras Timar74abeff2012-11-07 23:31:44 +010080 librelogo \
Andrzej Hunt9a1b2972014-06-09 11:33:25 +010081 libreofficekit \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050082 lingucomponent \
83 linguistic \
84 lotuswordpro \
85 $(call gb_Helper_optional,DESKTOP,l10ntools) \
Rene Engelhardb6e4c0e2013-03-10 17:30:16 +010086 $(call gb_Helper_optional,MARIADBC,mysqlc) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050087 $(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
David Tardon5e4eee12012-05-24 12:00:51 +020088 o3tl \
Peter Foley613221b2013-02-21 00:56:13 -060089 $(call gb_Helper_optional,ODK,odk) \
David Tardonf60ee812012-07-29 11:59:35 +020090 offapi \
91 officecfg \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050092 oovbaapi \
93 oox \
Tor Lillqvistc1d09b12014-11-26 22:30:33 +020094 $(call gb_Helper_optional,OPENCL,opencl) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050095 package \
Bjoern Michaelsenf6241442013-02-25 11:56:21 +010096 postprocess \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050097 $(call gb_Helper_optional,PYUNO,pyuno) \
98 $(call gb_Helper_optional,QADEVOOO,qadevOOo) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050099 readlicense_oo \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500100 registry \
101 remotebridges \
102 reportbuilder \
Peter Foley10811502013-03-26 21:44:21 -0400103 $(call gb_Helper_optional,DBCONNECTIVITY,reportdesign) \
David Tardonf60ee812012-07-29 11:59:35 +0200104 ridljar \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500105 rsc \
Peter Foley42adaa02012-10-25 20:26:22 -0400106 sal \
David Tardonf60ee812012-07-29 11:59:35 +0200107 salhelper \
David Tardon0799823e2012-05-24 12:05:01 +0200108 sax \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500109 sc \
110 scaddins \
111 sccomp \
112 $(call gb_Helper_optional,DESKTOP,scp2) \
113 scripting \
114 sd \
115 sdext \
Peter Foley42617572013-02-07 19:17:22 -0500116 $(call gb_Helper_optional,DESKTOP,setup_native) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500117 sfx2 \
118 shell \
119 slideshow \
120 smoketest \
Peter Foley2ba90232013-02-24 16:02:08 -0500121 solenv \
Peter Foley61e7c592013-02-22 21:33:23 -0500122 soltools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500123 sot \
124 starmath \
David Tardonf60ee812012-07-29 11:59:35 +0200125 stoc \
126 store \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500127 svl \
128 svtools \
Michael Meeks44cfc7c2012-10-09 12:22:23 +0100129 svgio \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500130 svx \
131 sw \
132 swext \
Peter Foley01344a82013-02-10 18:22:07 -0500133 sysui \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500134 test \
135 testtools \
136 toolkit \
David Tardond7767f62012-05-24 11:56:50 +0200137 tools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500138 tubes \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500139 ucb \
David Tardonf60ee812012-07-29 11:59:35 +0200140 ucbhelper \
David Tardonf60ee812012-07-29 11:59:35 +0200141 udkapi \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500142 UnoControls \
143 unodevtools \
David Tardon1d5c70b2012-05-24 12:17:24 +0200144 unoil \
Stephan Bergmann320571b2013-02-25 15:31:05 +0100145 unoidl \
David Tardon77fa4ee2012-05-24 12:02:36 +0200146 unotest \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500147 unotools \
148 unoxml \
David Tardon6b78dd32012-05-24 12:10:14 +0200149 ure \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500150 uui \
151 vbahelper \
152 vcl \
David Ostrovsky130833f2013-11-26 15:05:51 +0100153 winaccessibility \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500154 wizards \
155 writerfilter \
156 writerperfect \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500157 xmerge \
158 $(call gb_Helper_optional,DESKTOP,xmlhelp) \
159 xmloff \
David Tardonf60ee812012-07-29 11:59:35 +0200160 xmlreader \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500161 xmlscript \
162 xmlsecurity \
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -0500163))
164
Michael Stahl6d1cef52012-05-15 19:34:46 +0200165# Especially when building everything with symbols, the linking of the largest
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500166# libraries takes enormous amounts of RAM. To prevent annoying OOM situations
Michael Stahl6d1cef52012-05-15 19:34:46 +0200167# etc., try to prevent linking these in parallel by adding artificial build
168# order dependencies here.
Michael Stahl2ee838d2013-03-01 00:54:25 +0100169define repositorymodule_serialize1
Michael Stahl5905dfe2013-09-16 12:13:02 +0200170$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktarget,$(1))) \
Michael Stahl6d1cef52012-05-15 19:34:46 +0200171 :| $(foreach lib,$(2),$(call gb_Library_get_target,$(lib)))
172endef
173
Michael Stahl2ee838d2013-03-01 00:54:25 +0100174define repositorymodule_serialize
Michael Stahl6d1cef52012-05-15 19:34:46 +0200175$(if $(filter-out 0 1,$(words $(1))),\
Michael Stahl2ee838d2013-03-01 00:54:25 +0100176$(call repositorymodule_serialize1,$(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200177$(if $(strip $(1)),\
Michael Stahl2ee838d2013-03-01 00:54:25 +0100178$(call repositorymodule_serialize,$(wordlist 2,$(words $(1)),$(1))))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200179endef
180
Michael Stahlc70e55c2013-05-31 23:09:20 +0200181# DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
182# otherwise cyclic dependencies ruin everything.
Michael Stahlc4f7ed82013-05-31 23:02:33 +0200183# do not serialize on a partial build as that may fail due to missing deps.
184# the default goal is all (see Module.mk)
Michael Stahle2bc4c02014-08-26 13:17:44 +0200185ifeq (,$(filter-out all build check unitcheck slowcheck subsequentcheck,$(MAKECMDGOALS)))
Michael Stahl2ee838d2013-03-01 00:54:25 +0100186$(eval $(call repositorymodule_serialize,\
Peter Foley2d8514572014-09-11 18:05:01 -0400187 scfilt \
Tor Lillqvist7f564cc2014-02-19 16:08:26 +0200188 $(call gb_Helper_optional,SCRIPTING,vbaobj) \
Tor Lillqvist32e53702014-02-19 15:49:55 +0200189 sc msword \
190 $(call gb_Helper_optional,DESKTOP,swui) \
191 sw sd \
Tor Lillqvist7f564cc2014-02-19 16:08:26 +0200192 $(call gb_Helper_optional,DBCONNECTIVITY,dbu) \
Matúš Kukan7b32c5f2015-01-31 18:57:13 +0100193 writerfilter cui chartcontroller chartcore oox \
194 $(if $(MERGELIBS), merged, \
195 svx svxcore xo sfx fwk svt vcl) \
Michael Meeks88880512012-07-11 09:54:22 +0100196))
Matúš Kukanf1835782012-08-09 10:35:24 +0200197endif
Michael Stahl6d1cef52012-05-15 19:34:46 +0200198
Tor Lillqvist35491072011-08-02 21:22:35 +0300199# vim: set noet sw=4 ts=4: