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
,$(SRCDIR
)/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 SYS_ALLOC
,$(ALLOC
))$(filter-out XTRUE
,X
$(ENABLE_RUNTIME_OPTIMIZATIONS
)), \
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)\"" \
38 $(eval
$(call gb_Library_use_libraries
,sal
,\
39 $(if
$(filter ANDROID
,$(OS
)), \
44 $(eval
$(call gb_Library_use_externals
,sal
,\
48 $(eval
$(call gb_Library_use_system_win32_libs
,sal
,\
59 $(eval
$(call gb_Library_add_libs
,sal
,\
60 $(if
$(filter-out ANDROID HAIKU WNT
,$(OS
)), \
63 $(if
$(filter LINUX
,$(OS
)), \
67 $(if
$(filter SOLARIS
,$(OS
)), \
71 $(if
$(filter HAIKU
,$(OS
)), \
77 $(eval
$(call gb_Library_use_system_darwin_frameworks
,sal
,\
81 $(if
$(ENABLE_MACOSX_SANDBOX
),Security
) \
85 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
87 sal
/osl
/all/debugbase \
88 sal
/osl
/all/filepath \
89 sal
/osl
/all/loadmodulerelative \
91 sal
/osl
/all/signalshared \
96 sal
/rtl
/alloc_global \
107 sal
/rtl
/rtl_process \
116 sal
/textenc
/converter \
117 sal
/textenc
/convertsimple \
118 sal
/textenc
/handleundefinedunicodetotextchar \
119 sal
/textenc
/tcvtutf8 \
120 sal
/textenc
/tencinfo \
121 sal
/textenc
/textcvt \
122 sal
/textenc
/textenc \
123 sal
/textenc
/unichars \
127 $(eval
$(call gb_Library_add_cxxflags
,sal
,\
133 sal
/textenc
/context \
134 sal
/textenc
/convertbig5hkscs \
135 sal
/textenc
/converteuctw \
136 sal
/textenc
/convertgb18030 \
137 sal
/textenc
/convertisciidevangari \
138 sal
/textenc
/convertiso2022cn \
139 sal
/textenc
/convertiso2022jp \
140 sal
/textenc
/convertiso2022kr \
141 sal
/textenc
/convertsinglebytetobmpunicode \
143 sal
/textenc
/tcvtbyte \
145 sal
/textenc
/tcvtutf7 \
148 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
149 $(sal_textenc_code
) \
151 else ifeq ($(DISABLE_DYNLOADING
),TRUE
)
153 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
154 $(sal_textenc_code
) \
159 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
160 sal
/osl
/unx
/backtraceapi \
161 sal
/osl
/unx
/conditn \
163 sal
/osl
/unx
/file_error_transl \
164 sal
/osl
/unx
/file_misc \
165 sal
/osl
/unx
/file_path_helper \
166 sal
/osl
/unx
/file_stat \
167 sal
/osl
/unx
/file_url \
168 sal
/osl
/unx
/file_volume \
172 sal
/osl
/unx
/nlsupport \
174 sal
/osl
/unx
/process \
175 sal
/osl
/unx
/process_impl \
176 sal
/osl
/unx
/profile \
178 sal
/osl
/unx
/readwrite_helper \
179 sal
/osl
/unx
/security \
182 sal
/osl
/unx
/tempfile \
185 $(if
$(filter-out ANDROID IOS
,$(OS
)), sal
/osl
/unx
/salinit
) \
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 \
224 # .IF "$(CCNUMVER)" >= "001400000000"
225 # $(eval $(call gb_Library_add_defs,sal,\
226 -D_CRT_NON_CONFORMING_SWPRINTFS \
230 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
231 sal
/osl
/w32
/backtrace \
232 sal
/osl
/w32
/conditn \
233 sal
/osl
/w32
/dllentry \
235 sal
/osl
/w32
/file_dirvol \
236 sal
/osl
/w32
/file_error \
237 sal
/osl
/w32
/file_url \
238 sal
/osl
/w32
/interlck \
242 sal
/osl
/w32
/nlsupport \
243 sal
/osl
/w32
/path_helper \
245 sal
/osl
/w32
/process \
246 sal
/osl
/w32
/procimpl \
247 sal
/osl
/w32
/profile \
249 sal
/osl
/w32
/salinit \
250 sal
/osl
/w32
/security \
253 sal
/osl
/w32
/tempfile \
258 endif # ifneq ($(OS),WNT)
260 # vim: set noet sw=4 ts=4: