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_is_ure_library_or_dependency
,sal
))
19 $(eval
$(call gb_Library_set_include
,sal
,\
25 $(eval
$(call gb_Library_add_defs
,sal
,\
26 $(if
$(filter FUZZERS
,$(BUILD_TYPE
)), \
27 -DFORCE_DEFAULT_SIGNAL \
29 $(if
$(filter iOS
,$(OS
)), \
30 -DNO_CHILD_PROCESSES \
32 -DSAL_DLLIMPLEMENTATION \
33 -DRTL_OS
="\"$(RTL_OS)\"" \
34 -DRTL_ARCH
="\"$(RTL_ARCH)\"" \
35 -DSRCDIR
="\"$(SRCDIR)\"" \
36 $(call gb_CondLibSalTextenc
,-DCOND_LIB_SAL_TEXTENC
) \
39 $(eval
$(call gb_Library_use_libraries
,sal
,\
40 $(if
$(filter ANDROID EMSCRIPTEN
,$(OS
)), \
45 $(eval
$(call gb_Library_use_externals
,sal
,\
52 $(eval
$(call gb_Library_use_system_win32_libs
,sal
,\
65 $(eval
$(call gb_Library_add_libs
,sal
,\
66 $(if
$(filter LINUX
,$(OS
)), \
70 $(if
$(filter SOLARIS
,$(OS
)), \
74 $(if
$(filter HAIKU
,$(OS
)), \
81 $(eval
$(call gb_Library_use_system_darwin_frameworks
,sal
,\
85 $(if
$(ENABLE_MACOSX_SANDBOX
),Security
) \
89 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
91 sal
/osl
/all/debugbase \
92 sal
/osl
/all/filepath \
93 sal
/osl
/all/loadmodulerelative \
95 sal
/osl
/all/mutexshared \
96 sal
/osl
/all/signalshared \
97 sal
/osl
/all/threadshared \
100 sal
/rtl
/alloc_cache \
102 sal
/rtl
/alloc_global \
113 sal
/rtl
/rtl_process \
122 sal
/textenc
/converter \
123 sal
/textenc
/convertsimple \
124 sal
/textenc
/handleundefinedunicodetotextchar \
125 sal
/textenc
/tcvtutf8 \
126 sal
/textenc
/tencinfo \
127 sal
/textenc
/textcvt \
128 sal
/textenc
/textenc \
129 sal
/textenc
/unichars \
133 $(eval
$(call gb_Library_add_cxxflags
,sal
,\
138 ifeq (,$(call gb_CondLibSalTextenc
,$(true
)))
139 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
140 sal
/textenc
/context \
141 sal
/textenc
/convertbig5hkscs \
142 sal
/textenc
/converteuctw \
143 sal
/textenc
/convertgb18030 \
144 sal
/textenc
/convertisciidevangari \
145 sal
/textenc
/convertiso2022cn \
146 sal
/textenc
/convertiso2022jp \
147 sal
/textenc
/convertiso2022kr \
148 sal
/textenc
/convertsinglebytetobmpunicode \
150 sal
/textenc
/tcvtbyte \
152 sal
/textenc
/tcvtutf7 \
157 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
158 sal
/osl
/unx
/backtraceapi \
159 sal
/osl
/unx
/conditn \
161 sal
/osl
/unx
/file_error_transl \
162 sal
/osl
/unx
/file_misc \
163 sal
/osl
/unx
/file_path_helper \
164 sal
/osl
/unx
/file_stat \
165 sal
/osl
/unx
/file_url \
166 sal
/osl
/unx
/file_volume \
170 sal
/osl
/unx
/nlsupport \
172 sal
/osl
/unx
/process \
173 sal
/osl
/unx
/process_impl \
174 sal
/osl
/unx
/profile \
176 sal
/osl
/unx
/readwrite_helper \
177 sal
/osl
/unx
/salinit \
178 sal
/osl
/unx
/security \
181 sal
/osl
/unx
/soffice \
182 sal
/osl
/unx
/tempfile \
187 # Note that the uunxapi.mm file just includes the uunxapi.cxx one. Ditto for system.mm
189 $(eval
$(call gb_Library_add_objcxxobjects
,sal
,\
190 sal
/osl
/unx
/uunxapi \
194 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
195 sal
/osl
/unx
/uunxapi \
200 ifneq ($(filter MACOSX iOS
,$(OS
)),)
201 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
202 sal
/osl
/unx
/osxlocale \
206 $(eval
$(call gb_Library_add_cobjects
,sal
,\
207 sal
/osl
/unx
/backtrace \
210 ifneq ($(filter SPARC64 SPARC
,$(CPUNAME
)),)
211 $(eval
$(call gb_Library_add_asmobjects
,sal
,\
212 sal
/osl
/unx
/asm
/interlck_sparc \
215 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
216 sal
/osl
/unx
/interlck \
222 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
223 sal
/osl
/w32
/backtrace \
224 sal
/osl
/w32
/conditn \
225 sal
/osl
/w32
/dllentry \
227 sal
/osl
/w32
/file_dirvol \
228 sal
/osl
/w32
/file_error \
229 sal
/osl
/w32
/file_url \
230 sal
/osl
/w32
/interlck \
234 sal
/osl
/w32
/nlsupport \
236 sal
/osl
/w32
/process \
237 sal
/osl
/w32
/procimpl \
238 sal
/osl
/w32
/profile \
240 sal
/osl
/w32
/salinit \
241 sal
/osl
/w32
/security \
244 sal
/osl
/w32
/tempfile \
249 endif # ifneq ($(OS),WNT)
251 ifeq ($(ENABLE_CIPHER_OPENSSL_BACKEND
),TRUE
)
252 $(eval
$(call gb_Library_add_defs
,sal
,-DLIBO_CIPHER_OPENSSL_BACKEND
))
253 $(eval
$(call gb_Library_use_externals
,sal
, \
259 # vim: set noet sw=4 ts=4: