fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sal / Library_sal.mk
blob37e01a6bcba9d17e3880c810115c5defc59ff530
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,\
18 $$(INCLUDE) \
19 -I$(SRCDIR)/sal/inc \
22 $(eval $(call gb_Library_add_defs,sal,\
23 $(if $(filter $(ALLOC),SYS_ALLOC TCMALLOC JEMALLOC), \
24 -DFORCE_SYSALLOC \
25 ) \
26 $(if $(filter $(OS),IOS), \
27 -DNO_CHILD_PROCESSES \
28 ) \
29 $(LFS_CFLAGS) \
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), \
38 lo-bootstrap \
39 ) \
40 $(gb_UWINAPI) \
43 $(eval $(call gb_Library_use_externals,sal,\
44 valgrind \
45 boost_headers \
48 $(eval $(call gb_Library_use_system_win32_libs,sal,\
49 advapi32 \
50 comdlg32 \
51 mpr \
52 ole32 \
53 shell32 \
54 user32 \
55 ws2_32 \
58 $(eval $(call gb_Library_add_libs,sal,\
59 $(if $(filter-out $(OS),WNT), \
60 $(if $(filter $(OS),ANDROID),, \
61 -lpthread \
62 ) \
63 ) \
64 $(if $(filter $(OS),LINUX), \
65 -ldl \
66 -lrt \
67 ) \
68 $(if $(filter $(OS),SOLARIS), \
69 -lnsl \
70 -lsocket \
71 ) \
74 ifeq ($(OS),MACOSX)
75 $(eval $(call gb_Library_use_system_darwin_frameworks,sal,\
76 Carbon \
77 CoreFoundation \
79 endif
81 $(eval $(call gb_Library_add_exception_objects,sal,\
82 sal/osl/all/compat \
83 sal/osl/all/debugbase \
84 sal/osl/all/loadmodulerelative \
85 sal/osl/all/log \
86 sal/osl/all/trace \
87 sal/osl/all/utility \
88 sal/rtl/alloc_arena \
89 sal/rtl/alloc_cache \
90 sal/rtl/alloc_fini \
91 sal/rtl/alloc_global \
92 sal/rtl/bootstrap \
93 sal/rtl/byteseq \
94 sal/rtl/cipher \
95 sal/rtl/cmdargs \
96 sal/rtl/crc \
97 sal/rtl/digest \
98 sal/rtl/hash \
99 sal/rtl/locale \
100 sal/rtl/logfile \
101 sal/rtl/math \
102 sal/rtl/random \
103 sal/rtl/rtl_process \
104 sal/rtl/strbuf \
105 sal/rtl/strimp \
106 sal/rtl/string \
107 sal/rtl/unload \
108 sal/rtl/uri \
109 sal/rtl/ustrbuf \
110 sal/rtl/ustring \
111 sal/rtl/uuid \
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 \
125 ifeq ($(OS),IOS)
126 $(eval $(call gb_Library_add_cxxflags,sal,\
127 $(gb_OBJCXXFLAGS) \
129 endif
131 ifeq ($(OS),ANDROID)
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 \
142 sal/textenc/tables \
143 sal/textenc/tcvtbyte \
144 sal/textenc/tcvtmb \
145 sal/textenc/tcvtutf7 \
147 endif
149 ifneq ($(OS),WNT)
150 $(eval $(call gb_Library_add_exception_objects,sal,\
151 sal/osl/unx/conditn \
152 sal/osl/unx/diagnose \
153 sal/osl/unx/file \
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 \
160 sal/osl/unx/module \
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,\
167 sal/osl/unx/mutex \
168 sal/osl/unx/nlsupport \
169 sal/osl/unx/pipe \
170 sal/osl/unx/profile \
171 sal/osl/unx/readwrite_helper \
172 sal/osl/unx/security \
173 sal/osl/unx/socket \
174 sal/osl/unx/system \
175 sal/osl/unx/tempfile \
176 sal/osl/unx/thread \
177 sal/osl/unx/time \
178 sal/osl/unx/util \
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 \
189 endif
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 \
194 endif
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 \
203 else
204 $(eval $(call gb_Library_add_cobjects,sal,\
205 sal/osl/unx/interlck \
207 endif
209 else # $(OS) == WNT
211 # FIXME ?
212 # .IF "$(CCNUMVER)" >= "001400000000"
213 # $(eval $(call gb_Library_add_defs,sal,\
214 -D_CRT_NON_CONFORMING_SWPRINTFS \
216 # .ENDIF
218 $(eval $(call gb_Library_add_exception_objects,sal,\
219 sal/osl/w32/file \
220 sal/osl/w32/file_dirvol \
221 sal/osl/w32/file_url \
222 sal/osl/w32/module \
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 \
228 sal/osl/w32/signal \
229 sal/osl/w32/socket \
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 \
238 sal/osl/w32/mutex \
239 sal/osl/w32/nlsupport \
240 sal/osl/w32/pipe \
241 sal/osl/w32/security \
242 sal/osl/w32/thread \
243 sal/osl/w32/time \
244 sal/osl/w32/util \
247 endif # ifneq ($(OS),WNT)
249 # vim: set noet sw=4 ts=4: