1 # -*- Mode: makefile; 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
,3,$(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 $(ALLOC
),SYS_ALLOC TCMALLOC JEMALLOC
), \
26 $(if
$(filter $(OS
),IOS
), \
27 -DNO_CHILD_PROCESSES \
30 -DSAL_DLLIMPLEMENTATION \
31 -DRTL_OS
="\"$(RTL_OS)"\" \
32 -DRTL_ARCH
="\"$(RTL_ARCH)"\" \
33 -DSRCDIR
="\"$(SRCDIR)\"" \
36 $(eval
$(call gb_Library_use_libraries
,sal
,\
37 $(if
$(filter $(OS
),ANDROID
), \
43 $(eval
$(call gb_Library_use_externals
,sal
,\
48 $(eval
$(call gb_Library_use_system_win32_libs
,sal
,\
58 $(eval
$(call gb_Library_add_libs
,sal
,\
59 $(if
$(filter-out $(OS
),WNT
), \
60 $(if
$(filter $(OS
),ANDROID
),, \
64 $(if
$(filter $(OS
),LINUX
), \
68 $(if
$(filter $(OS
),SOLARIS
), \
75 $(eval
$(call gb_Library_use_system_darwin_frameworks
,sal
,\
81 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
83 sal
/osl
/all/debugbase \
84 sal
/osl
/all/loadmodulerelative \
91 sal
/rtl
/alloc_global \
103 sal
/rtl
/rtl_process \
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 \
121 $(eval
$(call gb_Library_add_cobjects
,sal
,\
122 sal
/osl
/all/filepath \
126 $(eval
$(call gb_Library_add_cxxflags
,sal
,\
132 $(eval
$(call gb_Library_add_exception_objects
,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 \
150 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
151 sal
/osl
/unx
/conditn \
152 sal
/osl
/unx
/diagnose \
154 sal
/osl
/unx
/file_error_transl \
155 sal
/osl
/unx
/file_misc \
156 sal
/osl
/unx
/file_path_helper \
157 sal
/osl
/unx
/file_stat \
158 sal
/osl
/unx
/file_url \
159 sal
/osl
/unx
/file_volume \
161 sal
/osl
/unx
/process \
162 sal
/osl
/unx
/process_impl \
163 $(if
$(filter DESKTOP
,$(BUILD_TYPE
)), sal
/osl
/unx
/salinit
) \
164 sal
/osl
/unx
/uunxapi \
166 $(eval
$(call gb_Library_add_cobjects
,sal
,\
168 sal
/osl
/unx
/nlsupport \
170 sal
/osl
/unx
/profile \
171 sal
/osl
/unx
/readwrite_helper \
172 sal
/osl
/unx
/security \
175 sal
/osl
/unx
/tempfile \
180 $(eval
$(call gb_Library_add_cobject
,sal
,sal
/osl
/unx
/signal
, \
181 $(if
$(filter $(ENABLE_CRASHDUMP
),YES
)$(filter $(ENABLE_DBGUTIL
),TRUE
), \
182 -DSAL_ENABLE_CRASH_REPORT
) \
185 ifneq ($(filter $(OS
),MACOSX IOS
),)
186 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
187 sal
/osl
/unx
/osxlocale \
190 ifneq ($(filter $(OS
),SOLARIS FREEBSD NETBSD MACOSX AIX OPENBSD DRAGONFLY
)$(filter $(OS
)$(CPUNAME
),LINUXSPARC
),)
191 $(eval
$(call gb_Library_add_cobjects
,sal
,\
192 sal
/osl
/unx
/backtrace \
195 ifneq ($(filter $(OS
)$(CPU
),SOLARISU SOLARISS NETBSDS LINUXS
),)
196 $(eval
$(call gb_Library_add_asmobjects
,sal
,\
197 sal
/osl
/unx
/asm
/interlck_sparc \
199 else ifeq ($(OS
)$(CPUNAME
),SOLARISINTEL
)
200 $(eval
$(call gb_Library_add_asmobjects
,sal
,\
201 sal
/osl
/unx
/asm
/interlck_x86 \
204 $(eval
$(call gb_Library_add_cobjects
,sal
,\
205 sal
/osl
/unx
/interlck \
212 # .IF "$(CCNUMVER)" >= "001400000000"
213 # $(eval $(call gb_Library_add_defs,sal,\
214 -D_CRT_NON_CONFORMING_SWPRINTFS \
218 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
220 sal
/osl
/w32
/file_dirvol \
221 sal
/osl
/w32
/file_url \
223 sal
/osl
/w32
/path_helper \
224 sal
/osl
/w32
/process \
225 sal
/osl
/w32
/procimpl \
226 sal
/osl
/w32
/profile \
227 sal
/osl
/w32
/salinit \
230 sal
/osl
/w32
/tempfile \
232 $(eval
$(call gb_Library_add_cobjects
,sal
,\
233 sal
/osl
/w32
/conditn \
234 sal
/osl
/w32
/diagnose \
235 sal
/osl
/w32
/dllentry \
236 sal
/osl
/w32
/file_error \
237 sal
/osl
/w32
/interlck \
239 sal
/osl
/w32
/nlsupport \
241 sal
/osl
/w32
/security \
247 endif # ifneq ($(OS),WNT)
249 # vim: set noet sw=4 ts=4: