blob: 58e219cbf92f764cb2d8287d223c4aa3559e5a75 [file] [log] [blame]
Michael Meeks070ff652011-08-24 14:44:40 +01001# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
2#
3# Version: MPL 1.1 / GPLv3+ / LGPLv3+
4#
5# The contents of this file are subject to the Mozilla Public License Version
6# 1.1 (the "License"); you may not use this file except in compliance with
7# the License. You may obtain a copy of the License at
8# http://www.mozilla.org/MPL/
9#
10# Software distributed under the License is distributed on an "AS IS" basis,
11# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12# for the specific language governing rights and limitations under the
13# License.
14#
15# The Initial Developer of the Original Code is
16# Matúš Kukan <matus.kukan@gmail.com> (C) 2011, All Rights Reserved.
17#
18# Alternatively, the contents of this file may be used under the terms of
19# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
20# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
21# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
22# instead of those above.
23
Michael Meeks070ff652011-08-24 14:44:40 +010024$(eval $(call gb_Library_Library,merged))
25
Matúš Kukan4967a9d2012-04-07 15:53:35 +020026# gb_MERGEDLIBS is defined in solenv/gbuild/extensions/pre_MergedLibsList.mk
27$(eval $(call gb_Library_use_library_objects,merged,\
28 $(gb_MERGEDLIBS) \
29))
30
Michael Stahlc923f7d2012-04-07 23:22:08 +020031$(eval $(call gb_Library_use_libraries,merged,\
Michael Meeks070ff652011-08-24 14:44:40 +010032 basegfx \
Michael Meeks070ff652011-08-24 14:44:40 +010033 comphelper \
Michael Meeks070ff652011-08-24 14:44:40 +010034 cppu \
35 cppuhelper \
Michael Meeks070ff652011-08-24 14:44:40 +010036 i18nisolang1 \
Tor Lillqvist888d96f2012-02-14 12:39:43 +020037 jvmfwk \
Michael Meeks070ff652011-08-24 14:44:40 +010038 sal \
39 salhelper \
Michael Meeks070ff652011-08-24 14:44:40 +010040 tl \
41 ucbhelper \
Matúš Kukana62f4262012-02-17 23:15:26 +010042 xmlreader \
Michael Stahl2e677c32012-09-26 23:45:28 +020043 $(gb_UWINAPI) \
Matúš Kukana74627d2012-01-06 10:48:43 +010044))
Michael Meeks070ff652011-08-24 14:44:40 +010045
46$(eval $(call gb_Library_use_externals,merged,\
Matúš Kukand4ef17a2012-09-19 20:48:47 +020047 cups \
Michael Stahl1658e4e2012-12-02 18:56:17 +010048 icui18n \
Matúš Kukan4967a9d2012-04-07 15:53:35 +020049 icule \
Michael Meeks070ff652011-08-24 14:44:40 +010050 icuuc \
Tor Lillqvist888d96f2012-02-14 12:39:43 +020051 jpeg \
Matúš Kukan4967a9d2012-04-07 15:53:35 +020052 lcms2 \
Tor Lillqvist25f83302012-02-09 22:31:30 +020053 libxml2 \
Matúš Kukan4967a9d2012-04-07 15:53:35 +020054 nss3 \
Michael Meeks070ff652011-08-24 14:44:40 +010055 zlib \
56))
57
Matúš Kukan3f750f82012-08-25 12:13:29 +020058# This would be needed on all platforms but only on android we merge libraries from lingucomponent
59ifeq ($(OS),ANDROID)
60$(eval $(call gb_Library_use_externals,merged,\
61 hunspell \
Matúš Kukandc8f9872012-09-01 14:55:33 +020062 expat_utf8 \
Matúš Kukan3f750f82012-08-25 12:13:29 +020063))
64$(eval $(call gb_Library_use_static_libraries,merged,\
Matúš Kukandc8f9872012-09-01 14:55:33 +020065 sax_shared \
Matúš Kukan3f750f82012-08-25 12:13:29 +020066 ulingu \
67))
68$(eval $(call gb_Library_add_libs,merged,\
69 $(if $(filter MSC,$(COM)),libmythes.lib,-lmythes-1.2) \
70 $(if $(filter MSC,$(COM)),hyphen.lib,-lhyphen) \
71))
72endif
73
Tor Lillqvist0198ba82012-08-20 12:36:40 +030074ifeq ($(ENABLE_GRAPHITE),TRUE)
75$(eval $(call gb_Library_use_externals,merged,\
76 graphite \
77))
78endif
79
Matúš Kukan4967a9d2012-04-07 15:53:35 +020080ifneq ($(OS),IOS)
81$(eval $(call gb_Library_use_libraries,merged,\
82 jvmaccess \
Michael Meeks070ff652011-08-24 14:44:40 +010083))
Matúš Kukan4967a9d2012-04-07 15:53:35 +020084endif
85
86ifeq ($(GUIBASE),unx)
87$(eval $(call gb_Library_use_externals,merged,\
88 fontconfig \
89 freetype \
90))
91endif
92
93ifeq ($(OS),LINUX)
Michael Stahl967986b2012-09-28 00:54:49 +020094$(eval $(call gb_Library_add_libs,merged,\
95 -lm \
96 -ldl \
97 -lpthread \
Matúš Kukan4967a9d2012-04-07 15:53:35 +020098))
99endif
Michael Meeks070ff652011-08-24 14:44:40 +0100100
101ifeq ($(OS),WNT)
Michael Stahldc397aae2012-09-28 15:31:46 +0200102$(eval $(call gb_Library_use_system_win32_libs,merged,\
Michael Meeks070ff652011-08-24 14:44:40 +0100103 advapi32 \
104 gdi32 \
Matúš Kukan4967a9d2012-04-07 15:53:35 +0200105 gdiplus \
106 imm32 \
107 mpr \
108 msimg32 \
Michael Stahldc397aae2012-09-28 15:31:46 +0200109 oldnames \
Michael Meeks070ff652011-08-24 14:44:40 +0100110 ole32 \
111 oleaut32 \
112 shell32 \
113 user32 \
Peter Foley2db6f672012-09-07 17:01:04 -0400114 usp10 \
Michael Meeks070ff652011-08-24 14:44:40 +0100115 uuid \
Matúš Kukan4967a9d2012-04-07 15:53:35 +0200116 version \
Matúš Kukan484a5dc2012-02-11 16:57:09 +0100117 winmm \
Matúš Kukan4967a9d2012-04-07 15:53:35 +0200118 winspool \
119))
Peter Foley0ba0b1ca2012-09-22 09:42:16 -0400120# prevent warning spamming
121$(eval $(call gb_Library_add_ldflags,merged,\
122 /ignore:4049 \
123 /ignore:4217 \
124))
Matúš Kukan4967a9d2012-04-07 15:53:35 +0200125endif
126
127ifeq ($(OS),MACOSX)
128$(eval $(call gb_Library_use_libraries,merged,\
129 AppleRemote \
Michael Stahl967986b2012-09-28 00:54:49 +0200130))
131$(eval $(call gb_Library_add_libs,merged,\
132 -lobjc \
Matúš Kukan4967a9d2012-04-07 15:53:35 +0200133))
Michael Stahlcee32aa2012-09-28 00:18:12 +0200134$(eval $(call gb_Library_use_system_darwin_frameworks,merged,\
135 Carbon \
136 Cocoa \
137 CoreFoundation \
138 CoreServices \
139 QuickTime \
Michael Meeks070ff652011-08-24 14:44:40 +0100140))
141endif
142
Tor Lillqvistdaaa5502012-06-18 22:32:35 +0300143ifeq ($(OS),ANDROID)
Tor Lillqvista1aed542012-08-23 22:23:33 +0300144$(eval $(call gb_Library_use_static_libraries,merged,\
Tor Lillqviste607f5f2012-08-20 13:02:08 +0300145 basebmp \
Tor Lillqvista1aed542012-08-23 22:23:33 +0300146))
147
148$(eval $(call gb_Library_use_libraries,merged,\
Tor Lillqvistdaaa5502012-06-18 22:32:35 +0300149 libotouch \
150))
Tor Lillqviste607f5f2012-08-20 13:02:08 +0300151
Matúš Kukan4967a9d2012-04-07 15:53:35 +0200152$(eval $(call gb_Library_add_libs,merged,\
153 -llog \
154 -landroid \
155 -llo-bootstrap \
156))
Tor Lillqviste607f5f2012-08-20 13:02:08 +0300157
158$(eval $(call gb_Library_use_externals,merged,\
159 fontconfig \
160 freetype \
Tor Lillqviste607f5f2012-08-20 13:02:08 +0300161))
Tor Lillqvistdaaa5502012-06-18 22:32:35 +0300162endif
163
Matúš Kukan4967a9d2012-04-07 15:53:35 +0200164ifeq ($(OS),IOS)
Michael Stahlcee32aa2012-09-28 00:18:12 +0200165$(eval $(call gb_Library_use_system_darwin_frameworks,merged,\
166 CoreFoundation \
167 UIKit \
Matúš Kukan4967a9d2012-04-07 15:53:35 +0200168))
169endif
170
171ifneq ($(ENABLE_LIBRSVG),NO)
172$(eval $(call gb_Library_use_externals,merged,\
173 cairo \
174))
175endif
176
177ifeq ($(ENABLE_TELEPATHY),TRUE)
178$(eval $(call gb_Library_use_externals,merged,\
179 gtk \
180 telepathy \
Tor Lillqvist25f83302012-02-09 22:31:30 +0200181))
182endif
183
Caolán McNamara100e5632012-09-04 08:44:05 +0100184ifeq ($(ENABLE_DBUS),TRUE)
185$(eval $(call gb_Library_use_externals,merged,\
186 dbus \
187))
188endif
189
Matúš Kukan4d7b9552012-08-12 18:06:31 +0200190ifeq ($(ENABLE_LIBLANGTAG),YES)
191$(eval $(call gb_Library_use_externals,merged,\
Matúš Kukan4d7b9552012-08-12 18:06:31 +0200192 liblangtag \
193))
194endif
195
Michael Meeks070ff652011-08-24 14:44:40 +0100196# vim: set noet sw=4 ts=4: