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 $(ALLOC
),SYS_ALLOC TCMALLOC JEMALLOC
)$(filter-out X
$(ENABLE_RUNTIME_OPTIMIZATIONS
),XTRUE
), \
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
,\
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 \
93 sal
/rtl
/alloc_global \
104 sal
/rtl
/rtl_process \
113 sal
/textenc
/converter \
114 sal
/textenc
/convertsimple \
115 sal
/textenc
/handleundefinedunicodetotextchar \
116 sal
/textenc
/tcvtutf8 \
117 sal
/textenc
/tencinfo \
118 sal
/textenc
/textcvt \
119 sal
/textenc
/textenc \
120 sal
/textenc
/unichars \
124 $(eval
$(call gb_Library_add_cxxflags
,sal
,\
130 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
131 sal
/textenc
/context \
132 sal
/textenc
/convertbig5hkscs \
133 sal
/textenc
/converteuctw \
134 sal
/textenc
/convertgb18030 \
135 sal
/textenc
/convertisciidevangari \
136 sal
/textenc
/convertiso2022cn \
137 sal
/textenc
/convertiso2022jp \
138 sal
/textenc
/convertiso2022kr \
139 sal
/textenc
/convertsinglebytetobmpunicode \
141 sal
/textenc
/tcvtbyte \
143 sal
/textenc
/tcvtutf7 \
148 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
149 sal
/osl
/unx
/conditn \
151 sal
/osl
/unx
/file_error_transl \
152 sal
/osl
/unx
/file_misc \
153 sal
/osl
/unx
/file_path_helper \
154 sal
/osl
/unx
/file_stat \
155 sal
/osl
/unx
/file_url \
156 sal
/osl
/unx
/file_volume \
160 sal
/osl
/unx
/nlsupport \
162 sal
/osl
/unx
/process \
163 sal
/osl
/unx
/process_impl \
164 sal
/osl
/unx
/profile \
165 sal
/osl
/unx
/readwrite_helper \
166 sal
/osl
/unx
/security \
170 sal
/osl
/unx
/tempfile \
173 $(if
$(filter DESKTOP
,$(BUILD_TYPE
)), sal
/osl
/unx
/salinit
) \
176 # Note that the uunxapi.mm file just includes the uunxapi.cxx one
178 $(eval
$(call gb_Library_add_objcxxobjects
,sal
,\
179 sal
/osl
/unx
/uunxapi \
182 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
183 sal
/osl
/unx
/uunxapi \
187 ifneq ($(filter $(OS
),MACOSX IOS
),)
188 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
189 sal
/osl
/unx
/osxlocale \
192 ifneq ($(filter $(OS
),SOLARIS FREEBSD NETBSD MACOSX AIX OPENBSD DRAGONFLY
)$(filter $(OS
)$(CPUNAME
),LINUXSPARC
),)
193 $(eval
$(call gb_Library_add_cobjects
,sal
,\
194 sal
/osl
/unx
/backtrace \
197 ifneq ($(filter $(CPUNAME
),SPARC64 SPARC
),)
198 $(eval
$(call gb_Library_add_asmobjects
,sal
,\
199 sal
/osl
/unx
/asm
/interlck_sparc \
202 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
203 sal
/osl
/unx
/interlck \
210 # .IF "$(CCNUMVER)" >= "001400000000"
211 # $(eval $(call gb_Library_add_defs,sal,\
212 -D_CRT_NON_CONFORMING_SWPRINTFS \
216 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
218 sal
/osl
/w32
/file_dirvol \
219 sal
/osl
/w32
/file_url \
221 sal
/osl
/w32
/path_helper \
222 sal
/osl
/w32
/process \
223 sal
/osl
/w32
/procimpl \
224 sal
/osl
/w32
/profile \
225 sal
/osl
/w32
/salinit \
228 sal
/osl
/w32
/tempfile \
230 $(eval
$(call gb_Library_add_cobjects
,sal
,\
231 sal
/osl
/w32
/conditn \
232 sal
/osl
/w32
/dllentry \
233 sal
/osl
/w32
/file_error \
234 sal
/osl
/w32
/interlck \
237 sal
/osl
/w32
/nlsupport \
239 sal
/osl
/w32
/security \
244 endif # ifneq ($(OS),WNT)
246 # vim: set noet sw=4 ts=4: