Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / Library_merged.mk
blob58e219cbf92f764cb2d8287d223c4aa3559e5a75
1 # -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
3 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
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/
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.
15 # The Initial Developer of the Original Code is
16 # Matúš Kukan <matus.kukan@gmail.com> (C) 2011, All Rights Reserved.
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.
24 $(eval $(call gb_Library_Library,merged))
26 # gb_MERGEDLIBS is defined in solenv/gbuild/extensions/pre_MergedLibsList.mk
27 $(eval $(call gb_Library_use_library_objects,merged,\
28 $(gb_MERGEDLIBS) \
31 $(eval $(call gb_Library_use_libraries,merged,\
32 basegfx \
33 comphelper \
34 cppu \
35 cppuhelper \
36 i18nisolang1 \
37 jvmfwk \
38 sal \
39 salhelper \
40 tl \
41 ucbhelper \
42 xmlreader \
43 $(gb_UWINAPI) \
46 $(eval $(call gb_Library_use_externals,merged,\
47 cups \
48 icui18n \
49 icule \
50 icuuc \
51 jpeg \
52 lcms2 \
53 libxml2 \
54 nss3 \
55 zlib \
58 # This would be needed on all platforms but only on android we merge libraries from lingucomponent
59 ifeq ($(OS),ANDROID)
60 $(eval $(call gb_Library_use_externals,merged,\
61 hunspell \
62 expat_utf8 \
64 $(eval $(call gb_Library_use_static_libraries,merged,\
65 sax_shared \
66 ulingu \
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) \
72 endif
74 ifeq ($(ENABLE_GRAPHITE),TRUE)
75 $(eval $(call gb_Library_use_externals,merged,\
76 graphite \
78 endif
80 ifneq ($(OS),IOS)
81 $(eval $(call gb_Library_use_libraries,merged,\
82 jvmaccess \
84 endif
86 ifeq ($(GUIBASE),unx)
87 $(eval $(call gb_Library_use_externals,merged,\
88 fontconfig \
89 freetype \
91 endif
93 ifeq ($(OS),LINUX)
94 $(eval $(call gb_Library_add_libs,merged,\
95 -lm \
96 -ldl \
97 -lpthread \
99 endif
101 ifeq ($(OS),WNT)
102 $(eval $(call gb_Library_use_system_win32_libs,merged,\
103 advapi32 \
104 gdi32 \
105 gdiplus \
106 imm32 \
107 mpr \
108 msimg32 \
109 oldnames \
110 ole32 \
111 oleaut32 \
112 shell32 \
113 user32 \
114 usp10 \
115 uuid \
116 version \
117 winmm \
118 winspool \
120 # prevent warning spamming
121 $(eval $(call gb_Library_add_ldflags,merged,\
122 /ignore:4049 \
123 /ignore:4217 \
125 endif
127 ifeq ($(OS),MACOSX)
128 $(eval $(call gb_Library_use_libraries,merged,\
129 AppleRemote \
131 $(eval $(call gb_Library_add_libs,merged,\
132 -lobjc \
134 $(eval $(call gb_Library_use_system_darwin_frameworks,merged,\
135 Carbon \
136 Cocoa \
137 CoreFoundation \
138 CoreServices \
139 QuickTime \
141 endif
143 ifeq ($(OS),ANDROID)
144 $(eval $(call gb_Library_use_static_libraries,merged,\
145 basebmp \
148 $(eval $(call gb_Library_use_libraries,merged,\
149 libotouch \
152 $(eval $(call gb_Library_add_libs,merged,\
153 -llog \
154 -landroid \
155 -llo-bootstrap \
158 $(eval $(call gb_Library_use_externals,merged,\
159 fontconfig \
160 freetype \
162 endif
164 ifeq ($(OS),IOS)
165 $(eval $(call gb_Library_use_system_darwin_frameworks,merged,\
166 CoreFoundation \
167 UIKit \
169 endif
171 ifneq ($(ENABLE_LIBRSVG),NO)
172 $(eval $(call gb_Library_use_externals,merged,\
173 cairo \
175 endif
177 ifeq ($(ENABLE_TELEPATHY),TRUE)
178 $(eval $(call gb_Library_use_externals,merged,\
179 gtk \
180 telepathy \
182 endif
184 ifeq ($(ENABLE_DBUS),TRUE)
185 $(eval $(call gb_Library_use_externals,merged,\
186 dbus \
188 endif
190 ifeq ($(ENABLE_LIBLANGTAG),YES)
191 $(eval $(call gb_Library_use_externals,merged,\
192 liblangtag \
194 endif
196 # vim: set noet sw=4 ts=4: