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
,\
22 $(eval
$(call gb_Library_add_defs
,sal
,\
23 $(if
$(filter FUZZERS
,$(BUILD_TYPE
)), \
24 -DFORCE_DEFAULT_SIGNAL \
26 $(if
$(filter iOS
,$(OS
)), \
27 -DNO_CHILD_PROCESSES \
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
)), \
41 $(eval
$(call gb_Library_use_externals
,sal
,\
47 $(eval
$(call gb_Library_use_system_win32_libs
,sal
,\
60 $(eval
$(call gb_Library_add_libs
,sal
,\
61 $(if
$(filter LINUX
,$(OS
)), \
65 $(if
$(filter SOLARIS
,$(OS
)), \
69 $(if
$(filter HAIKU
,$(OS
)), \
75 $(eval
$(call gb_Library_use_system_darwin_frameworks
,sal
,\
79 $(if
$(ENABLE_MACOSX_SANDBOX
),Security
) \
83 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
85 sal
/osl
/all/debugbase \
86 sal
/osl
/all/filepath \
87 sal
/osl
/all/loadmodulerelative \
89 sal
/osl
/all/mutexshared \
90 sal
/osl
/all/signalshared \
95 sal
/rtl
/alloc_global \
106 sal
/rtl
/rtl_process \
115 sal
/textenc
/converter \
116 sal
/textenc
/convertsimple \
117 sal
/textenc
/handleundefinedunicodetotextchar \
118 sal
/textenc
/tcvtutf8 \
119 sal
/textenc
/tencinfo \
120 sal
/textenc
/textcvt \
121 sal
/textenc
/textenc \
122 sal
/textenc
/unichars \
126 $(eval
$(call gb_Library_add_cxxflags
,sal
,\
132 sal
/textenc
/context \
133 sal
/textenc
/convertbig5hkscs \
134 sal
/textenc
/converteuctw \
135 sal
/textenc
/convertgb18030 \
136 sal
/textenc
/convertisciidevangari \
137 sal
/textenc
/convertiso2022cn \
138 sal
/textenc
/convertiso2022jp \
139 sal
/textenc
/convertiso2022kr \
140 sal
/textenc
/convertsinglebytetobmpunicode \
142 sal
/textenc
/tcvtbyte \
144 sal
/textenc
/tcvtutf7 \
147 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
148 $(sal_textenc_code
) \
150 else ifeq ($(DISABLE_DYNLOADING
),TRUE
)
152 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
153 $(sal_textenc_code
) \
158 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
159 sal
/osl
/unx
/backtraceapi \
160 sal
/osl
/unx
/conditn \
162 sal
/osl
/unx
/file_error_transl \
163 sal
/osl
/unx
/file_misc \
164 sal
/osl
/unx
/file_path_helper \
165 sal
/osl
/unx
/file_stat \
166 sal
/osl
/unx
/file_url \
167 sal
/osl
/unx
/file_volume \
171 sal
/osl
/unx
/nlsupport \
173 sal
/osl
/unx
/process \
174 sal
/osl
/unx
/process_impl \
175 sal
/osl
/unx
/profile \
177 sal
/osl
/unx
/readwrite_helper \
178 sal
/osl
/unx
/salinit \
179 sal
/osl
/unx
/security \
182 sal
/osl
/unx
/soffice \
183 sal
/osl
/unx
/tempfile \
188 # Note that the uunxapi.mm file just includes the uunxapi.cxx one. Ditto for system.mm
190 $(eval
$(call gb_Library_add_objcxxobjects
,sal
,\
191 sal
/osl
/unx
/uunxapi \
195 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
196 sal
/osl
/unx
/uunxapi \
201 ifneq ($(filter MACOSX iOS
,$(OS
)),)
202 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
203 sal
/osl
/unx
/osxlocale \
207 $(eval
$(call gb_Library_add_cobjects
,sal
,\
208 sal
/osl
/unx
/backtrace \
211 ifneq ($(filter SPARC64 SPARC
,$(CPUNAME
)),)
212 $(eval
$(call gb_Library_add_asmobjects
,sal
,\
213 sal
/osl
/unx
/asm
/interlck_sparc \
216 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
217 sal
/osl
/unx
/interlck \
223 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
224 sal
/osl
/w32
/backtrace \
225 sal
/osl
/w32
/conditn \
226 sal
/osl
/w32
/dllentry \
228 sal
/osl
/w32
/file_dirvol \
229 sal
/osl
/w32
/file_error \
230 sal
/osl
/w32
/file_url \
231 sal
/osl
/w32
/interlck \
235 sal
/osl
/w32
/nlsupport \
236 sal
/osl
/w32
/path_helper \
238 sal
/osl
/w32
/process \
239 sal
/osl
/w32
/procimpl \
240 sal
/osl
/w32
/profile \
242 sal
/osl
/w32
/salinit \
243 sal
/osl
/w32
/security \
246 sal
/osl
/w32
/tempfile \
251 endif # ifneq ($(OS),WNT)
253 ifeq ($(ENABLE_CIPHER_OPENSSL_BACKEND
),TRUE
)
254 $(eval
$(call gb_Library_add_defs
,sal
,-DLIBO_CIPHER_OPENSSL_BACKEND
))
255 $(eval
$(call gb_Library_use_externals
,sal
, \
261 # vim: set noet sw=4 ts=4: