Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / sal / Library_sal.mk
blobe84ed0aaf1b5c64d4c30b62bb69a0accaf632b28
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
4 # This file is part of the LibreOffice project.
6 # 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/.
11 $(eval $(call gb_Library_Library,sal))
13 $(eval $(call gb_Library_set_soversion_script,sal,$(SRCDIR)/sal/util/sal.map))
15 $(eval $(call gb_Library_set_precompiled_header,sal,sal/inc/pch/precompiled_sal))
17 $(eval $(call gb_Library_set_include,sal,\
18 $$(INCLUDE) \
19 -I$(SRCDIR)/sal/inc \
22 $(eval $(call gb_Library_add_defs,sal,\
23 $(if $(filter FUZZERS,$(BUILD_TYPE)), \
24 -DFORCE_DEFAULT_SIGNAL \
25 ) \
26 $(if $(filter iOS,$(OS)), \
27 -DNO_CHILD_PROCESSES \
28 ) \
29 -DSAL_DLLIMPLEMENTATION \
30 -DRTL_OS="\"$(RTL_OS)\"" \
31 -DRTL_ARCH="\"$(RTL_ARCH)\"" \
32 -DSRCDIR="\"$(SRCDIR)\"" \
35 $(eval $(call gb_Library_use_libraries,sal,\
36 $(if $(filter ANDROID,$(OS)), \
37 lo-bootstrap \
38 ) \
41 $(eval $(call gb_Library_use_externals,sal,\
42 valgrind \
45 $(eval $(call gb_Library_use_system_win32_libs,sal,\
46 advapi32 \
47 comdlg32 \
48 dbghelp \
49 mpr \
50 ole32 \
51 shell32 \
52 user32 \
53 userenv \
54 wer \
55 ws2_32 \
58 $(eval $(call gb_Library_add_libs,sal,\
59 $(if $(filter LINUX,$(OS)), \
60 -ldl \
61 -lrt \
62 ) \
63 $(if $(filter SOLARIS,$(OS)), \
64 -lnsl \
65 -lsocket \
66 ) \
67 $(if $(filter HAIKU,$(OS)), \
68 -lnetwork \
69 ) \
72 ifeq ($(OS),MACOSX)
73 $(eval $(call gb_Library_use_system_darwin_frameworks,sal,\
74 Carbon \
75 CoreFoundation \
76 Foundation \
77 $(if $(ENABLE_MACOSX_SANDBOX),Security) \
79 endif
81 $(eval $(call gb_Library_add_exception_objects,sal,\
82 sal/osl/all/compat \
83 sal/osl/all/debugbase \
84 sal/osl/all/filepath \
85 sal/osl/all/loadmodulerelative \
86 sal/osl/all/log \
87 sal/osl/all/signalshared \
88 sal/osl/all/utility \
89 sal/rtl/alloc_arena \
90 sal/rtl/alloc_cache \
91 sal/rtl/alloc_fini \
92 sal/rtl/alloc_global \
93 sal/rtl/bootstrap \
94 sal/rtl/byteseq \
95 sal/rtl/cipher \
96 sal/rtl/cmdargs \
97 sal/rtl/crc \
98 sal/rtl/digest \
99 sal/rtl/hash \
100 sal/rtl/locale \
101 sal/rtl/math \
102 sal/rtl/random \
103 sal/rtl/rtl_process \
104 sal/rtl/strbuf \
105 sal/rtl/strimp \
106 sal/rtl/string \
107 sal/rtl/unload \
108 sal/rtl/uri \
109 sal/rtl/ustrbuf \
110 sal/rtl/ustring \
111 sal/rtl/uuid \
112 sal/textenc/converter \
113 sal/textenc/convertsimple \
114 sal/textenc/handleundefinedunicodetotextchar \
115 sal/textenc/tcvtutf8 \
116 sal/textenc/tencinfo \
117 sal/textenc/textcvt \
118 sal/textenc/textenc \
119 sal/textenc/unichars \
122 ifeq ($(OS),iOS)
123 $(eval $(call gb_Library_add_cxxflags,sal,\
124 $(gb_OBJCXXFLAGS) \
126 endif
128 sal_textenc_code= \
129 sal/textenc/context \
130 sal/textenc/convertbig5hkscs \
131 sal/textenc/converteuctw \
132 sal/textenc/convertgb18030 \
133 sal/textenc/convertisciidevangari \
134 sal/textenc/convertiso2022cn \
135 sal/textenc/convertiso2022jp \
136 sal/textenc/convertiso2022kr \
137 sal/textenc/convertsinglebytetobmpunicode \
138 sal/textenc/tables \
139 sal/textenc/tcvtbyte \
140 sal/textenc/tcvtmb \
141 sal/textenc/tcvtutf7 \
143 ifeq ($(OS),ANDROID)
144 $(eval $(call gb_Library_add_exception_objects,sal,\
145 $(sal_textenc_code) \
147 else ifeq ($(DISABLE_DYNLOADING),TRUE)
149 $(eval $(call gb_Library_add_exception_objects,sal,\
150 $(sal_textenc_code) \
152 endif
154 ifneq ($(OS),WNT)
155 $(eval $(call gb_Library_add_exception_objects,sal,\
156 sal/osl/unx/backtraceapi \
157 sal/osl/unx/conditn \
158 sal/osl/unx/file \
159 sal/osl/unx/file_error_transl \
160 sal/osl/unx/file_misc \
161 sal/osl/unx/file_path_helper \
162 sal/osl/unx/file_stat \
163 sal/osl/unx/file_url \
164 sal/osl/unx/file_volume \
165 sal/osl/unx/memory \
166 sal/osl/unx/module \
167 sal/osl/unx/mutex \
168 sal/osl/unx/nlsupport \
169 sal/osl/unx/pipe \
170 sal/osl/unx/process \
171 sal/osl/unx/process_impl \
172 sal/osl/unx/profile \
173 sal/osl/unx/random \
174 sal/osl/unx/readwrite_helper \
175 sal/osl/unx/salinit \
176 sal/osl/unx/security \
177 sal/osl/unx/signal \
178 sal/osl/unx/socket \
179 sal/osl/unx/soffice \
180 sal/osl/unx/tempfile \
181 sal/osl/unx/thread \
182 sal/osl/unx/time \
185 # Note that the uunxapi.mm file just includes the uunxapi.cxx one. Ditto for system.mm
186 ifeq ($(OS),MACOSX)
187 $(eval $(call gb_Library_add_objcxxobjects,sal,\
188 sal/osl/unx/uunxapi \
189 sal/osl/unx/system \
191 else
192 $(eval $(call gb_Library_add_exception_objects,sal,\
193 sal/osl/unx/uunxapi \
194 sal/osl/unx/system \
196 endif
198 ifneq ($(filter MACOSX iOS,$(OS)),)
199 $(eval $(call gb_Library_add_exception_objects,sal,\
200 sal/osl/unx/osxlocale \
202 endif
203 ifneq ($(OS),WNT)
204 $(eval $(call gb_Library_add_cobjects,sal,\
205 sal/osl/unx/backtrace \
207 endif
208 ifneq ($(filter SPARC64 SPARC,$(CPUNAME)),)
209 $(eval $(call gb_Library_add_asmobjects,sal,\
210 sal/osl/unx/asm/interlck_sparc \
212 else
213 $(eval $(call gb_Library_add_exception_objects,sal,\
214 sal/osl/unx/interlck \
216 endif
218 else # $(OS) == WNT
220 # FIXME ?
221 # .IF "$(CCNUMVER)" >= "001400000000"
222 # $(eval $(call gb_Library_add_defs,sal,\
223 -D_CRT_NON_CONFORMING_SWPRINTFS \
225 # .ENDIF
227 $(eval $(call gb_Library_add_exception_objects,sal,\
228 sal/osl/w32/backtrace \
229 sal/osl/w32/conditn \
230 sal/osl/w32/dllentry \
231 sal/osl/w32/file \
232 sal/osl/w32/file_dirvol \
233 sal/osl/w32/file_error \
234 sal/osl/w32/file_url \
235 sal/osl/w32/interlck \
236 sal/osl/w32/memory \
237 sal/osl/w32/module \
238 sal/osl/w32/mutex \
239 sal/osl/w32/nlsupport \
240 sal/osl/w32/path_helper \
241 sal/osl/w32/pipe \
242 sal/osl/w32/process \
243 sal/osl/w32/procimpl \
244 sal/osl/w32/profile \
245 sal/osl/w32/random \
246 sal/osl/w32/salinit \
247 sal/osl/w32/security \
248 sal/osl/w32/signal \
249 sal/osl/w32/socket \
250 sal/osl/w32/tempfile \
251 sal/osl/w32/thread \
252 sal/osl/w32/time \
255 endif # ifneq ($(OS),WNT)
257 ifeq ($(ENABLE_CIPHER_OPENSSL_BACKEND),TRUE)
258 $(eval $(call gb_Library_add_defs,sal,-DLIBO_CIPHER_OPENSSL_BACKEND))
259 $(eval $(call gb_Library_use_externals,sal, \
260 openssl \
261 openssl_headers \
263 endif
265 # vim: set noet sw=4 ts=4: