Add 'reference' to the iterator_traits, needed by LegacyIterator reqs
[LibreOffice.git] / sal / Library_sal.mk
blob03ca93f673b84f4f056e5c692d5e44a29bf3ef83
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_is_ure_library,sal))
19 $(eval $(call gb_Library_set_include,sal,\
20 $$(INCLUDE) \
21 -I$(SRCDIR)/sal/inc \
22 $(BACKTRACE_CFLAGS) \
25 $(eval $(call gb_Library_add_defs,sal,\
26 $(if $(filter FUZZERS,$(BUILD_TYPE)), \
27 -DFORCE_DEFAULT_SIGNAL \
28 ) \
29 $(if $(filter iOS,$(OS)), \
30 -DNO_CHILD_PROCESSES \
31 ) \
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)), \
40 lo-bootstrap \
41 ) \
44 $(eval $(call gb_Library_use_externals,sal,\
45 dtoa \
46 valgrind \
47 zlib \
50 $(eval $(call gb_Library_use_system_win32_libs,sal,\
51 advapi32 \
52 comdlg32 \
53 dbghelp \
54 mpr \
55 ole32 \
56 shell32 \
57 user32 \
58 userenv \
59 wer \
60 ws2_32 \
63 $(eval $(call gb_Library_add_libs,sal,\
64 $(if $(filter LINUX,$(OS)), \
65 -ldl \
66 -lrt \
67 ) \
68 $(if $(filter SOLARIS,$(OS)), \
69 -lnsl \
70 -lsocket \
71 ) \
72 $(if $(filter HAIKU,$(OS)), \
73 -lnetwork \
74 ) \
75 $(BACKTRACE_LIBS) \
78 ifeq ($(OS),MACOSX)
79 $(eval $(call gb_Library_use_system_darwin_frameworks,sal,\
80 Carbon \
81 CoreFoundation \
82 Foundation \
83 $(if $(ENABLE_MACOSX_SANDBOX),Security) \
85 endif
87 $(eval $(call gb_Library_add_exception_objects,sal,\
88 sal/osl/all/compat \
89 sal/osl/all/debugbase \
90 sal/osl/all/filepath \
91 sal/osl/all/loadmodulerelative \
92 sal/osl/all/log \
93 sal/osl/all/mutexshared \
94 sal/osl/all/signalshared \
95 sal/osl/all/utility \
96 sal/rtl/alloc_arena \
97 sal/rtl/alloc_cache \
98 sal/rtl/alloc_fini \
99 sal/rtl/alloc_global \
100 sal/rtl/bootstrap \
101 sal/rtl/byteseq \
102 sal/rtl/cipher \
103 sal/rtl/cmdargs \
104 sal/rtl/crc \
105 sal/rtl/digest \
106 sal/rtl/hash \
107 sal/rtl/locale \
108 sal/rtl/math \
109 sal/rtl/random \
110 sal/rtl/rtl_process \
111 sal/rtl/strbuf \
112 sal/rtl/strimp \
113 sal/rtl/string \
114 sal/rtl/unload \
115 sal/rtl/uri \
116 sal/rtl/ustrbuf \
117 sal/rtl/ustring \
118 sal/rtl/uuid \
119 sal/textenc/converter \
120 sal/textenc/convertsimple \
121 sal/textenc/handleundefinedunicodetotextchar \
122 sal/textenc/tcvtutf8 \
123 sal/textenc/tencinfo \
124 sal/textenc/textcvt \
125 sal/textenc/textenc \
126 sal/textenc/unichars \
129 ifeq ($(OS),iOS)
130 $(eval $(call gb_Library_add_cxxflags,sal,\
131 $(gb_OBJCXXFLAGS) \
133 endif
135 sal_textenc_code= \
136 sal/textenc/context \
137 sal/textenc/convertbig5hkscs \
138 sal/textenc/converteuctw \
139 sal/textenc/convertgb18030 \
140 sal/textenc/convertisciidevangari \
141 sal/textenc/convertiso2022cn \
142 sal/textenc/convertiso2022jp \
143 sal/textenc/convertiso2022kr \
144 sal/textenc/convertsinglebytetobmpunicode \
145 sal/textenc/tables \
146 sal/textenc/tcvtbyte \
147 sal/textenc/tcvtmb \
148 sal/textenc/tcvtutf7 \
150 ifeq ($(OS),ANDROID)
151 $(eval $(call gb_Library_add_exception_objects,sal,\
152 $(sal_textenc_code) \
154 else ifeq ($(DISABLE_DYNLOADING),TRUE)
156 $(eval $(call gb_Library_add_exception_objects,sal,\
157 $(sal_textenc_code) \
159 endif
161 ifneq ($(OS),WNT)
162 $(eval $(call gb_Library_add_exception_objects,sal,\
163 sal/osl/unx/backtraceapi \
164 sal/osl/unx/conditn \
165 sal/osl/unx/file \
166 sal/osl/unx/file_error_transl \
167 sal/osl/unx/file_misc \
168 sal/osl/unx/file_path_helper \
169 sal/osl/unx/file_stat \
170 sal/osl/unx/file_url \
171 sal/osl/unx/file_volume \
172 sal/osl/unx/memory \
173 sal/osl/unx/module \
174 sal/osl/unx/mutex \
175 sal/osl/unx/nlsupport \
176 sal/osl/unx/pipe \
177 sal/osl/unx/process \
178 sal/osl/unx/process_impl \
179 sal/osl/unx/profile \
180 sal/osl/unx/random \
181 sal/osl/unx/readwrite_helper \
182 sal/osl/unx/salinit \
183 sal/osl/unx/security \
184 sal/osl/unx/signal \
185 sal/osl/unx/socket \
186 sal/osl/unx/soffice \
187 sal/osl/unx/tempfile \
188 sal/osl/unx/thread \
189 sal/osl/unx/time \
192 # Note that the uunxapi.mm file just includes the uunxapi.cxx one. Ditto for system.mm
193 ifeq ($(OS),MACOSX)
194 $(eval $(call gb_Library_add_objcxxobjects,sal,\
195 sal/osl/unx/uunxapi \
196 sal/osl/unx/system \
198 else
199 $(eval $(call gb_Library_add_exception_objects,sal,\
200 sal/osl/unx/uunxapi \
201 sal/osl/unx/system \
203 endif
205 ifneq ($(filter MACOSX iOS,$(OS)),)
206 $(eval $(call gb_Library_add_exception_objects,sal,\
207 sal/osl/unx/osxlocale \
209 endif
210 ifneq ($(OS),WNT)
211 $(eval $(call gb_Library_add_cobjects,sal,\
212 sal/osl/unx/backtrace \
214 endif
215 ifneq ($(filter SPARC64 SPARC,$(CPUNAME)),)
216 $(eval $(call gb_Library_add_asmobjects,sal,\
217 sal/osl/unx/asm/interlck_sparc \
219 else
220 $(eval $(call gb_Library_add_exception_objects,sal,\
221 sal/osl/unx/interlck \
223 endif
225 else # $(OS) == WNT
227 $(eval $(call gb_Library_add_exception_objects,sal,\
228 sal/osl/w32/backtrace \
229 sal/osl/w32/conditn \
230 sal/osl/w32/dllentry \
231 sal/osl/w32/file \
232 sal/osl/w32/file_dirvol \
233 sal/osl/w32/file_error \
234 sal/osl/w32/file_url \
235 sal/osl/w32/interlck \
236 sal/osl/w32/memory \
237 sal/osl/w32/module \
238 sal/osl/w32/mutex \
239 sal/osl/w32/nlsupport \
240 sal/osl/w32/path_helper \
241 sal/osl/w32/pipe \
242 sal/osl/w32/process \
243 sal/osl/w32/procimpl \
244 sal/osl/w32/profile \
245 sal/osl/w32/random \
246 sal/osl/w32/salinit \
247 sal/osl/w32/security \
248 sal/osl/w32/signal \
249 sal/osl/w32/socket \
250 sal/osl/w32/tempfile \
251 sal/osl/w32/thread \
252 sal/osl/w32/time \
255 endif # ifneq ($(OS),WNT)
257 ifeq ($(ENABLE_CIPHER_OPENSSL_BACKEND),TRUE)
258 $(eval $(call gb_Library_add_defs,sal,-DLIBO_CIPHER_OPENSSL_BACKEND))
259 $(eval $(call gb_Library_use_externals,sal, \
260 openssl \
261 openssl_headers \
263 endif
265 # vim: set noet sw=4 ts=4: