blob: 8735de4977d31d5a9b82c80e3ae394074265c291 [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 Meeksd037b812026-03-26 15:06:16 +00004# This file is part of the Collabora Office 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
Armin Le Grand (Allotropia)02140552021-04-30 17:26:41 +020023# WASM_CHART change
24ifneq ($(ENABLE_WASM_STRIP_CHART),TRUE)
25$(eval $(call gb_Module_add_moduledirs,libreoffice,\
26 chart2 \
27))
28endif
29
30# WASM_CANVAS change
31ifneq ($(ENABLE_WASM_STRIP_CANVAS),TRUE)
32$(eval $(call gb_Module_add_moduledirs,libreoffice,\
33 canvas \
34 cppcanvas \
35))
36endif
37
38ifneq ($(ENABLE_WASM_STRIP_DBACCESS),TRUE)
39$(eval $(call gb_Module_add_moduledirs,libreoffice,\
Caolán McNamara79747652026-03-29 16:06:03 +010040 $(call gb_Helper_optional,DBCONNECTIVITY,dbaccess) \
Armin Le Grand (Allotropia)02140552021-04-30 17:26:41 +020041))
42endif
43
44ifneq ($(ENABLE_WASM_STRIP_ACCESSIBILITY),TRUE)
Michael Stahl2ee838d2013-03-01 00:54:25 +010045$(eval $(call gb_Module_add_moduledirs,libreoffice,\
Armin Le Grand (Allotropia)02140552021-04-30 17:26:41 +020046 winaccessibility \
47))
48endif
49
50$(eval $(call gb_Module_add_moduledirs,libreoffice,\
Peter Foley902fdf42013-02-28 19:56:43 -050051 android \
Balazs Varga97ee1262022-08-08 10:49:20 +020052 $(if $(ENABLE_WASM_STRIP_BASIC_DRAW_MATH_IMPRESS),, \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050053 animations \
Armin Le Grand (Allotropia)02140552021-04-30 17:26:41 +020054 ) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050055 apple_remote \
Jan-Marek Glogowskif9e79a92021-05-18 01:11:41 +020056 avmedia \
Balazs Varga97ee1262022-08-08 10:49:20 +020057 $(if $(ENABLE_WASM_STRIP_CALC),, \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050058 basctl \
Balazs Varga97ee1262022-08-08 10:49:20 +020059 ) \
David Tardon5e4eee12012-05-24 12:00:51 +020060 basegfx \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050061 basic \
62 bean \
David Tardonfa871912012-05-24 12:11:58 +020063 binaryurp \
David Tardonf60ee812012-07-29 11:59:35 +020064 bridges \
David Tardonf60ee812012-07-29 11:59:35 +020065 cli_ure \
Jan-Marek Glogowskidc9ccf32021-05-21 15:41:15 +020066 codemaker \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050067 comphelper \
68 configmgr \
Caolán McNamara9d7315d2016-12-19 11:54:37 +000069 connectivity \
David Tardonf60ee812012-07-29 11:59:35 +020070 cppu \
71 cppuhelper \
David Tardonabcab9d2012-05-24 12:13:37 +020072 cpputools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050073 cui \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050074 desktop \
75 $(call gb_Helper_optional,DICTIONARIES,dictionaries) \
Tomaž Vajngerlbd0f5262022-12-28 09:43:46 +090076 docmodel\
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050077 drawinglayer \
78 editeng \
79 embeddedobj \
David Tardone767cc772012-05-24 12:21:14 +020080 embedserv \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050081 eventattacher \
82 extensions \
Peter Foley61e7c592013-02-22 21:33:23 -050083 external \
Jan-Marek Glogowski1fc85d02019-12-06 14:46:44 +010084 extras \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050085 filter \
Tor Lillqvist739a5bc2014-04-28 17:29:27 +030086 $(call gb_Helper_optional,DBCONNECTIVITY,forms) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050087 formula \
Tor Lillqvist21e2f5b2014-05-07 13:52:47 +030088 $(call gb_Helper_optional,DESKTOP,fpicker) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050089 framework \
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +020090 $(call gb_Helper_optionals_or,HELPTOOLS XMLHELP,helpcompiler) \
David Tardonca3a1ae2013-02-27 10:11:27 +010091 $(call gb_Helper_optional,HELP,helpcontent2) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050092 hwpfilter \
Eike Rathke876c6192013-04-05 18:40:39 +020093 i18nlangtag \
David Tardond2f23a22012-05-24 11:59:16 +020094 i18npool \
David Tardonee28c182012-05-24 12:08:45 +020095 i18nutil \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -050096 idl \
Bjoern Michaelsen87c57d82013-02-26 17:42:05 +010097 instsetoo_native \
David Tardon3018f4f2012-05-24 12:12:43 +020098 io \
David Tardon87e0c602012-05-24 12:15:38 +020099 javaunohelper \
David Tardonf60ee812012-07-29 11:59:35 +0200100 jurt \
101 jvmaccess \
102 jvmfwk \
Michael Stahlc18d3f82021-01-18 20:14:54 +0100103 $(call gb_Helper_optional,LIBRELOGO,librelogo) \
Tomaž Vajngerl5b4aab52026-03-27 14:27:37 +0900104 kit \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500105 lingucomponent \
106 linguistic \
107 lotuswordpro \
108 $(call gb_Helper_optional,DESKTOP,l10ntools) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500109 $(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
David Tardon5e4eee12012-05-24 12:00:51 +0200110 o3tl \
David Tardonf60ee812012-07-29 11:59:35 +0200111 offapi \
112 officecfg \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500113 oovbaapi \
114 oox \
Tor Lillqvistc1d09b12014-11-26 22:30:33 +0200115 $(call gb_Helper_optional,OPENCL,opencl) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500116 package \
Luboš Luňák08d02b52019-09-22 12:13:42 +0200117 pch \
Bjoern Michaelsenf6241442013-02-25 11:56:21 +0100118 postprocess \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500119 $(call gb_Helper_optional,PYUNO,pyuno) \
120 $(call gb_Helper_optional,QADEVOOO,qadevOOo) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500121 readlicense_oo \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500122 registry \
123 remotebridges \
124 reportbuilder \
Peter Foley10811502013-03-26 21:44:21 -0400125 $(call gb_Helper_optional,DBCONNECTIVITY,reportdesign) \
David Tardonf60ee812012-07-29 11:59:35 +0200126 ridljar \
Mohamed Ali3d755772025-06-12 18:52:45 +0300127 rust_uno \
Peter Foley42adaa02012-10-25 20:26:22 -0400128 sal \
David Tardonf60ee812012-07-29 11:59:35 +0200129 salhelper \
David Tardon0799823e2012-05-24 12:05:01 +0200130 sax \
Balazs Varga97ee1262022-08-08 10:49:20 +0200131 $(if $(ENABLE_WASM_STRIP_CALC),, \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500132 sc \
133 scaddins \
134 sccomp \
Balazs Varga97ee1262022-08-08 10:49:20 +0200135 ) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500136 $(call gb_Helper_optional,DESKTOP,scp2) \
137 scripting \
Balazs Varga97ee1262022-08-08 10:49:20 +0200138 $(if $(ENABLE_WASM_STRIP_BASIC_DRAW_MATH_IMPRESS),, \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500139 sd \
140 sdext \
Armin Le Grand (Allotropia)02140552021-04-30 17:26:41 +0200141 ) \
Peter Foley42617572013-02-07 19:17:22 -0500142 $(call gb_Helper_optional,DESKTOP,setup_native) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500143 sfx2 \
144 shell \
Balazs Varga97ee1262022-08-08 10:49:20 +0200145 $(if $(ENABLE_WASM_STRIP_BASIC_DRAW_MATH_IMPRESS),, \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500146 slideshow \
Armin Le Grand (Allotropia)02140552021-04-30 17:26:41 +0200147 ) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500148 smoketest \
Peter Foley2ba90232013-02-24 16:02:08 -0500149 solenv \
Peter Foley61e7c592013-02-22 21:33:23 -0500150 soltools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500151 sot \
Balazs Varga97ee1262022-08-08 10:49:20 +0200152 $(if $(ENABLE_WASM_STRIP_BASIC_DRAW_MATH_IMPRESS),, \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500153 starmath \
Armin Le Grand (Allotropia)02140552021-04-30 17:26:41 +0200154 ) \
Jan-Marek Glogowskidc9ccf32021-05-21 15:41:15 +0200155 $(if $(ENABLE_CUSTOMTARGET_COMPONENTS),static) \
David Tardonf60ee812012-07-29 11:59:35 +0200156 stoc \
157 store \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500158 svl \
159 svtools \
Michael Meeks44cfc7c2012-10-09 12:22:23 +0100160 svgio \
Armin Le Grand83535a22017-06-09 19:55:17 +0200161 emfio \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500162 svx \
Balazs Varga97ee1262022-08-08 10:49:20 +0200163 $(if $(ENABLE_WASM_STRIP_WRITER),, \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500164 sw \
165 swext \
Balazs Varga97ee1262022-08-08 10:49:20 +0200166 ) \
Peter Foley01344a82013-02-10 18:22:07 -0500167 sysui \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500168 test \
169 testtools \
170 toolkit \
David Tardond7767f62012-05-24 11:56:50 +0200171 tools \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500172 ucb \
David Tardonf60ee812012-07-29 11:59:35 +0200173 ucbhelper \
David Tardonf60ee812012-07-29 11:59:35 +0200174 udkapi \
Markus Mohrhard3ead72d2016-05-09 10:05:14 +0200175 $(call gb_Helper_optional,PYUNO,uitest) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500176 UnoControls \
David Tardon1d5c70b2012-05-24 12:17:24 +0200177 unoil \
Stephan Bergmann320571b2013-02-25 15:31:05 +0100178 unoidl \
David Tardon77fa4ee2012-05-24 12:02:36 +0200179 unotest \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500180 unotools \
181 unoxml \
David Tardon6b78dd32012-05-24 12:10:14 +0200182 ure \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500183 uui \
184 vbahelper \
185 vcl \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500186 writerperfect \
Jan-Marek Glogowski14069d82021-05-24 14:12:18 +0200187 $(call gb_Helper_optional,XMLHELP,xmlhelp) \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500188 xmloff \
David Tardonf60ee812012-07-29 11:59:35 +0200189 xmlreader \
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500190 xmlscript \
191 xmlsecurity \
Norbert Thiebaud7c1026a2011-04-23 21:14:25 -0500192))
193
Jan-Marek Glogowskidc9ccf32021-05-21 15:41:15 +0200194ifeq (,$(DISABLE_DYNLOADING))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200195# Especially when building everything with symbols, the linking of the largest
Norbert Thiebaud47894cd2012-09-29 02:21:20 -0500196# libraries takes enormous amounts of RAM. To prevent annoying OOM situations
Michael Stahl6d1cef52012-05-15 19:34:46 +0200197# etc., try to prevent linking these in parallel by adding artificial build
198# order dependencies here.
Luboš Luňákc74b7da2022-04-21 11:48:10 +0200199# Do this only if a linker is not explicitly set, as this should only apply
200# to the BFD linker and any decently modern linker presumably performs better.
201ifeq (,$(USE_LD))
Michael Stahl2ee838d2013-03-01 00:54:25 +0100202define repositorymodule_serialize1
Jan-Marek Glogowskic859b4a2021-12-31 09:11:10 +0100203$(call gb_Library_get_linktarget_target,$(1)) :| $(foreach lib,$(2),$(call gb_Library_get_target,$(lib)))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200204endef
Luboš Luňákc74b7da2022-04-21 11:48:10 +0200205else
206define repositorymodule_serialize1
207endef
208endif
Michael Stahl6d1cef52012-05-15 19:34:46 +0200209
Michael Stahl2ee838d2013-03-01 00:54:25 +0100210define repositorymodule_serialize
Michael Stahl6d1cef52012-05-15 19:34:46 +0200211$(if $(filter-out 0 1,$(words $(1))),\
Michael Stahl2ee838d2013-03-01 00:54:25 +0100212$(call repositorymodule_serialize1,$(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200213$(if $(strip $(1)),\
Michael Stahl2ee838d2013-03-01 00:54:25 +0100214$(call repositorymodule_serialize,$(wordlist 2,$(words $(1)),$(1))))
Michael Stahl6d1cef52012-05-15 19:34:46 +0200215endef
216
Michael Stahlc70e55c2013-05-31 23:09:20 +0200217# DO NOT SORT ALPHABETICALLY: the libraries must be listed in dependency order,
218# otherwise cyclic dependencies ruin everything.
Michael Stahlc4f7ed82013-05-31 23:02:33 +0200219# do not serialize on a partial build as that may fail due to missing deps.
Luboš Luňák4aa7dec2020-03-27 10:44:14 +0100220# the default goal is build (see Module.mk)
Thorsten Behrens23118ce2022-09-11 12:21:22 +0200221ifeq (,$(filter-out build check unitcheck slowcheck screenshot subsequentcheck uicheck coverage,$(MAKECMDGOALS)))
Michael Stahl2ee838d2013-03-01 00:54:25 +0100222$(eval $(call repositorymodule_serialize,\
Peter Foley2d8514572014-09-11 18:05:01 -0400223 scfilt \
Tor Lillqvist7f564cc2014-02-19 16:08:26 +0200224 $(call gb_Helper_optional,SCRIPTING,vbaobj) \
Tor Lillqvist32e53702014-02-19 15:49:55 +0200225 sc msword \
226 $(call gb_Helper_optional,DESKTOP,swui) \
Noel Grandinfc5108a2024-03-05 15:00:00 +0200227 sw \
Noel Grandinbacb9222024-03-05 13:58:37 +0200228 $(if $(MERGELIBS_MORE),, \
Noel Grandinfc5108a2024-03-05 15:00:00 +0200229 sd \
Noel Grandinbacb9222024-03-05 13:58:37 +0200230 $(call gb_Helper_optional,DBCONNECTIVITY,dbu) \
Noel Grandin828c1992024-04-10 16:50:51 +0100231 cui) \
Matúš Kukan7b32c5f2015-01-31 18:57:13 +0100232 $(if $(MERGELIBS), merged, \
Noel Grandine09f2122025-03-29 09:21:16 +0200233 chart2 oox svx svxcore xo sfx fwk svt vcl) \
Michael Meeks88880512012-07-11 09:54:22 +0100234))
Matúš Kukanf1835782012-08-09 10:35:24 +0200235endif
Jan-Marek Glogowskidc9ccf32021-05-21 15:41:15 +0200236endif # !$(DISABLE_DYNLOADING)
Michael Stahl6d1cef52012-05-15 19:34:46 +0200237
Tor Lillqvist35491072011-08-02 21:22:35 +0300238# vim: set noet sw=4 ts=4: