Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / sal / Library_sal.mk
blobde22417f29f9999dcf7feb61d623f7c17a97c1fe
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 or as specified alternatively below. You may obtain a copy of
8 # the License at 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 # Major Contributor(s):
16 # Copyright (C) 2011 Matúš Kukan <matus.kukan@gmail.com> (initial developer)
18 # All Rights Reserved.
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 $(eval $(call gb_Library_Library,sal))
30 $(eval $(call gb_Library_set_soversion_script,sal,3,$(SRCDIR)/sal/util/sal.map))
32 $(eval $(call gb_Library_use_packages,sal,\
33 sal_generated \
34 sal_inc \
37 $(eval $(call gb_Library_set_include,sal,\
38 $$(INCLUDE) \
39 -I$(SRCDIR)/sal/inc \
42 $(eval $(call gb_Library_add_defs,sal,\
43 $(if $(VALGRIND_CFLAGS), \
44 $(VALGRIND_CFLAGS) \
45 -DHAVE_MEMCHECK_H=1 \
46 ) \
47 $(if $(filter $(ALLOC),SYS_ALLOC TCMALLOC JEMALLOC), \
48 -DFORCE_SYSALLOC \
49 ) \
50 $(if $(filter $(OS),IOS), \
51 -DNO_CHILD_PROCESSES \
52 ) \
53 $(LFS_CFLAGS) \
54 -DSAL_DLLIMPLEMENTATION \
55 -DRTL_OS="\"$(RTL_OS)"\" \
56 -DRTL_ARCH="\"$(RTL_ARCH)"\" \
59 $(eval $(call gb_Library_use_libraries,sal,\
60 $(if $(filter $(GUI),UNX), \
61 $(if $(filter $(OS),ANDROID),, \
62 pthread \
63 ) \
64 ) \
65 $(if $(filter $(OS),LINUX), \
66 dl \
67 ) \
68 $(if $(filter $(OS),SOLARIS), \
69 nsl \
70 socket \
71 ) \
72 $(if $(filter $(OS),WNT), \
73 advapi32 \
74 comdlg32 \
75 mpr \
76 ole32 \
77 shell32 \
78 user32 \
79 ws2_32 \
80 ) \
81 $(if $(filter $(OS),ANDROID), \
82 lo-bootstrap \
83 ) \
84 $(gb_STDLIBS) \
87 ifeq ($(OS),MACOSX)
88 $(eval $(call gb_Library_use_externals,sal,\
89 carbon \
90 corefoundation \
92 endif
94 $(eval $(call gb_Library_add_exception_objects,sal,\
95 sal/osl/all/debugbase \
96 sal/osl/all/loadmodulerelative \
97 sal/osl/all/log \
98 sal/osl/all/trace \
99 sal/osl/all/utility \
100 sal/rtl/source/alloc_arena \
101 sal/rtl/source/alloc_cache \
102 sal/rtl/source/alloc_fini \
103 sal/rtl/source/alloc_global \
104 sal/rtl/source/bootstrap \
105 sal/rtl/source/byteseq \
106 sal/rtl/source/cipher \
107 sal/rtl/source/cmdargs \
108 sal/rtl/source/crc \
109 sal/rtl/source/digest \
110 sal/rtl/source/hash \
111 sal/rtl/source/locale \
112 sal/rtl/source/logfile \
113 sal/rtl/source/math \
114 sal/rtl/source/memory \
115 sal/rtl/source/random \
116 sal/rtl/source/rtl_process \
117 sal/rtl/source/strbuf \
118 sal/rtl/source/strimp \
119 sal/rtl/source/string \
120 sal/rtl/source/unload \
121 sal/rtl/source/uri \
122 sal/rtl/source/ustrbuf \
123 sal/rtl/source/ustring \
124 sal/rtl/source/uuid \
125 sal/textenc/converter \
126 sal/textenc/convertsimple \
127 sal/textenc/handleundefinedunicodetotextchar \
128 sal/textenc/tcvtutf8 \
129 sal/textenc/tencinfo \
130 sal/textenc/textcvt \
131 sal/textenc/textenc \
132 sal/textenc/unichars \
134 $(eval $(call gb_Library_add_cobjects,sal,\
135 sal/osl/all/filepath \
138 ifeq ($(OS),IOS)
139 $(eval $(call gb_Library_add_cxxflags,sal,\
140 $(gb_OBJCXXFLAGS) \
142 endif
144 ifeq ($(OS),ANDROID)
145 $(eval $(call gb_Library_add_exception_objects,sal,\
146 sal/textenc/context \
147 sal/textenc/convertbig5hkscs \
148 sal/textenc/converteuctw \
149 sal/textenc/convertgb18030 \
150 sal/textenc/convertiso2022cn \
151 sal/textenc/convertiso2022jp \
152 sal/textenc/convertiso2022kr \
153 sal/textenc/convertsinglebytetobmpunicode \
154 sal/textenc/tables \
155 sal/textenc/tcvtbyte \
156 sal/textenc/tcvtmb \
157 sal/textenc/tcvtutf7 \
159 endif
161 ifeq ($(GUI),UNX)
162 $(eval $(call gb_Library_add_exception_objects,sal,\
163 sal/osl/unx/conditn \
164 sal/osl/unx/file \
165 sal/osl/unx/file_error_transl \
166 sal/osl/unx/file_misc \
167 sal/osl/unx/file_path_helper \
168 sal/osl/unx/file_stat \
169 sal/osl/unx/file_url \
170 sal/osl/unx/file_volume \
171 sal/osl/unx/module \
172 sal/osl/unx/process \
173 sal/osl/unx/process_impl \
174 sal/osl/unx/salinit \
175 sal/osl/unx/uunxapi \
177 $(eval $(call gb_Library_add_cobjects,sal,\
178 sal/osl/unx/diagnose \
179 sal/osl/unx/mutex \
180 sal/osl/unx/nlsupport \
181 sal/osl/unx/pipe \
182 sal/osl/unx/profile \
183 sal/osl/unx/readwrite_helper \
184 sal/osl/unx/security \
185 sal/osl/unx/semaphor \
186 sal/osl/unx/socket \
187 sal/osl/unx/system \
188 sal/osl/unx/tempfile \
189 sal/osl/unx/thread \
190 sal/osl/unx/time \
191 sal/osl/unx/util \
193 $(eval $(call gb_Library_add_cobject,sal,sal/osl/unx/signal, \
194 $(if $(filter $(ENABLE_CRASHDUMP),YES)$(if $(PRODUCT),,TRUE), \
195 -DSAL_ENABLE_CRASH_REPORT) \
198 ifneq ($(filter $(OS),MACOSX IOS),)
199 $(eval $(call gb_Library_add_exception_objects,sal,\
200 sal/osl/unx/osxlocale \
202 endif
203 ifneq ($(filter $(OS),SOLARIS FREEBSD NETBSD MACOSX AIX OPENBSD DRAGONFLY)$(filter $(OS)$(CPUNAME),LINUXSPARC),)
204 $(eval $(call gb_Library_add_cobjects,sal,\
205 sal/osl/unx/backtrace \
207 endif
208 ifneq ($(filter $(OS)$(CPU),SOLARISU SOLARISS NETBSDS LINUXS),)
209 $(eval $(call gb_Library_add_asmobjects,sal,\
210 sal/osl/unx/asm/interlck_sparc \
212 else ifeq ($(OS)$(CPUNAME),SOLARISINTEL)
213 $(eval $(call gb_Library_add_asmobjects,sal,\
214 sal/osl/unx/asm/interlck_x86 \
216 else
217 $(eval $(call gb_Library_add_cobjects,sal,\
218 sal/osl/unx/interlck \
220 endif
222 else # $(GUI) != UNX
224 # FIXME ?
225 # .IF "$(CCNUMVER)" >= "001400000000"
226 # $(eval $(call gb_Library_add_defs,sal,\
227 -D_CRT_NON_CONFORMING_SWPRINTFS \
229 # .ENDIF
231 $(eval $(call gb_Library_add_exception_objects,sal,\
232 sal/osl/w32/file \
233 sal/osl/w32/file_dirvol \
234 sal/osl/w32/file_url \
235 sal/osl/w32/module \
236 sal/osl/w32/path_helper \
237 sal/osl/w32/process \
238 sal/osl/w32/procimpl \
239 sal/osl/w32/profile \
240 sal/osl/w32/salinit \
241 sal/osl/w32/signal \
242 sal/osl/w32/socket \
243 sal/osl/w32/tempfile \
245 $(eval $(call gb_Library_add_cobjects,sal,\
246 sal/osl/w32/conditn \
247 sal/osl/w32/diagnose \
248 sal/osl/w32/dllentry \
249 sal/osl/w32/file_error \
250 sal/osl/w32/interlck \
251 sal/osl/w32/mutex \
252 sal/osl/w32/nlsupport \
253 sal/osl/w32/pipe \
254 sal/osl/w32/security \
255 sal/osl/w32/semaphor \
256 sal/osl/w32/thread \
257 sal/osl/w32/time \
258 sal/osl/w32/util \
261 endif # ifeq ($(GUI),UNX)
263 # vim: set noet sw=4 ts=4: