1 # -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
3 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License or as specified alternatively below. You may obtain a copy of
8 # the License at http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # Major Contributor(s):
16 # Copyright (C) 2011 Matúš Kukan <matus.kukan@gmail.com> (initial developer)
18 # All Rights Reserved.
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 $(eval
$(call gb_Library_Library
,sal
))
30 $(eval
$(call gb_Library_set_soversion_script
,sal
,3,$(SRCDIR
)/sal
/util
/sal.map
))
32 $(eval
$(call gb_Library_use_packages
,sal
,\
37 $(eval
$(call gb_Library_set_include
,sal
,\
42 $(eval
$(call gb_Library_add_defs
,sal
,\
43 $(if
$(VALGRIND_CFLAGS
), \
47 $(if
$(filter $(ALLOC
),SYS_ALLOC TCMALLOC JEMALLOC
), \
50 $(if
$(filter $(OS
),IOS
), \
51 -DNO_CHILD_PROCESSES \
54 -DSAL_DLLIMPLEMENTATION \
55 -DRTL_OS
="\"$(RTL_OS)"\" \
56 -DRTL_ARCH
="\"$(RTL_ARCH)"\" \
59 $(eval
$(call gb_Library_use_libraries
,sal
,\
60 $(if
$(filter $(GUI
),UNX
), \
61 $(if
$(filter $(OS
),ANDROID
),, \
65 $(if
$(filter $(OS
),LINUX
), \
68 $(if
$(filter $(OS
),SOLARIS
), \
72 $(if
$(filter $(OS
),WNT
), \
81 $(if
$(filter $(OS
),ANDROID
), \
88 $(eval
$(call gb_Library_use_externals
,sal
,\
94 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
95 sal
/osl
/all/debugbase \
96 sal
/osl
/all/loadmodulerelative \
100 sal
/rtl
/source
/alloc_arena \
101 sal
/rtl
/source
/alloc_cache \
102 sal
/rtl
/source
/alloc_fini \
103 sal
/rtl
/source
/alloc_global \
104 sal
/rtl
/source
/bootstrap \
105 sal
/rtl
/source
/byteseq \
106 sal
/rtl
/source
/cipher \
107 sal
/rtl
/source
/cmdargs \
109 sal
/rtl
/source
/digest \
110 sal
/rtl
/source
/hash \
111 sal
/rtl
/source
/locale \
112 sal
/rtl
/source
/logfile \
113 sal
/rtl
/source
/math \
114 sal
/rtl
/source
/memory \
115 sal
/rtl
/source
/random \
116 sal
/rtl
/source
/rtl_process \
117 sal
/rtl
/source
/strbuf \
118 sal
/rtl
/source
/strimp \
119 sal
/rtl
/source
/string \
120 sal
/rtl
/source
/unload \
122 sal
/rtl
/source
/ustrbuf \
123 sal
/rtl
/source
/ustring \
124 sal
/rtl
/source
/uuid \
125 sal
/textenc
/converter \
126 sal
/textenc
/convertsimple \
127 sal
/textenc
/handleundefinedunicodetotextchar \
128 sal
/textenc
/tcvtutf8 \
129 sal
/textenc
/tencinfo \
130 sal
/textenc
/textcvt \
131 sal
/textenc
/textenc \
132 sal
/textenc
/unichars \
134 $(eval
$(call gb_Library_add_cobjects
,sal
,\
135 sal
/osl
/all/filepath \
139 $(eval
$(call gb_Library_add_cxxflags
,sal
,\
145 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
146 sal
/textenc
/context \
147 sal
/textenc
/convertbig5hkscs \
148 sal
/textenc
/converteuctw \
149 sal
/textenc
/convertgb18030 \
150 sal
/textenc
/convertiso2022cn \
151 sal
/textenc
/convertiso2022jp \
152 sal
/textenc
/convertiso2022kr \
153 sal
/textenc
/convertsinglebytetobmpunicode \
155 sal
/textenc
/tcvtbyte \
157 sal
/textenc
/tcvtutf7 \
162 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
163 sal
/osl
/unx
/conditn \
165 sal
/osl
/unx
/file_error_transl \
166 sal
/osl
/unx
/file_misc \
167 sal
/osl
/unx
/file_path_helper \
168 sal
/osl
/unx
/file_stat \
169 sal
/osl
/unx
/file_url \
170 sal
/osl
/unx
/file_volume \
172 sal
/osl
/unx
/process \
173 sal
/osl
/unx
/process_impl \
174 sal
/osl
/unx
/salinit \
175 sal
/osl
/unx
/uunxapi \
177 $(eval
$(call gb_Library_add_cobjects
,sal
,\
178 sal
/osl
/unx
/diagnose \
180 sal
/osl
/unx
/nlsupport \
182 sal
/osl
/unx
/profile \
183 sal
/osl
/unx
/readwrite_helper \
184 sal
/osl
/unx
/security \
185 sal
/osl
/unx
/semaphor \
188 sal
/osl
/unx
/tempfile \
193 $(eval
$(call gb_Library_add_cobject
,sal
,sal
/osl
/unx
/signal
, \
194 $(if
$(filter $(ENABLE_CRASHDUMP
),YES
)$(if
$(PRODUCT
),,TRUE
), \
195 -DSAL_ENABLE_CRASH_REPORT
) \
198 ifneq ($(filter $(OS
),MACOSX IOS
),)
199 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
200 sal
/osl
/unx
/osxlocale \
203 ifneq ($(filter $(OS
),SOLARIS FREEBSD NETBSD MACOSX AIX OPENBSD DRAGONFLY
)$(filter $(OS
)$(CPUNAME
),LINUXSPARC
),)
204 $(eval
$(call gb_Library_add_cobjects
,sal
,\
205 sal
/osl
/unx
/backtrace \
208 ifneq ($(filter $(OS
)$(CPU
),SOLARISU SOLARISS NETBSDS LINUXS
),)
209 $(eval
$(call gb_Library_add_asmobjects
,sal
,\
210 sal
/osl
/unx
/asm
/interlck_sparc \
212 else ifeq ($(OS
)$(CPUNAME
),SOLARISINTEL
)
213 $(eval
$(call gb_Library_add_asmobjects
,sal
,\
214 sal
/osl
/unx
/asm
/interlck_x86 \
217 $(eval
$(call gb_Library_add_cobjects
,sal
,\
218 sal
/osl
/unx
/interlck \
225 # .IF "$(CCNUMVER)" >= "001400000000"
226 # $(eval $(call gb_Library_add_defs,sal,\
227 -D_CRT_NON_CONFORMING_SWPRINTFS \
231 $(eval
$(call gb_Library_add_exception_objects
,sal
,\
233 sal
/osl
/w32
/file_dirvol \
234 sal
/osl
/w32
/file_url \
236 sal
/osl
/w32
/path_helper \
237 sal
/osl
/w32
/process \
238 sal
/osl
/w32
/procimpl \
239 sal
/osl
/w32
/profile \
240 sal
/osl
/w32
/salinit \
243 sal
/osl
/w32
/tempfile \
245 $(eval
$(call gb_Library_add_cobjects
,sal
,\
246 sal
/osl
/w32
/conditn \
247 sal
/osl
/w32
/diagnose \
248 sal
/osl
/w32
/dllentry \
249 sal
/osl
/w32
/file_error \
250 sal
/osl
/w32
/interlck \
252 sal
/osl
/w32
/nlsupport \
254 sal
/osl
/w32
/security \
255 sal
/osl
/w32
/semaphor \
261 endif # ifeq ($(GUI),UNX)
263 # vim: set noet sw=4 ts=4: