update emoji autocorrect entries from po-files
[LibreOffice.git] / sal / Library_sal.mk
blobfbf84d7d86196caddc75d90d295eaffbf76adc55
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,\
18 $$(INCLUDE) \
19 -I$(SRCDIR)/sal/inc \
22 $(eval $(call gb_Library_add_defs,sal,\
23 $(if $(filter $(ALLOC),SYS_ALLOC TCMALLOC JEMALLOC)$(filter-out X$(ENABLE_RUNTIME_OPTIMIZATIONS),XTRUE), \
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 \
78 Foundation \
79 $(if $(ENABLE_MACOSX_SANDBOX),Security) \
81 endif
83 $(eval $(call gb_Library_add_exception_objects,sal,\
84 sal/osl/all/compat \
85 sal/osl/all/debugbase \
86 sal/osl/all/filepath \
87 sal/osl/all/loadmodulerelative \
88 sal/osl/all/log \
89 sal/osl/all/utility \
90 sal/rtl/alloc_arena \
91 sal/rtl/alloc_cache \
92 sal/rtl/alloc_fini \
93 sal/rtl/alloc_global \
94 sal/rtl/bootstrap \
95 sal/rtl/byteseq \
96 sal/rtl/cipher \
97 sal/rtl/cmdargs \
98 sal/rtl/crc \
99 sal/rtl/digest \
100 sal/rtl/hash \
101 sal/rtl/locale \
102 sal/rtl/math \
103 sal/rtl/random \
104 sal/rtl/rtl_process \
105 sal/rtl/strbuf \
106 sal/rtl/strimp \
107 sal/rtl/string \
108 sal/rtl/unload \
109 sal/rtl/uri \
110 sal/rtl/ustrbuf \
111 sal/rtl/ustring \
112 sal/rtl/uuid \
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 \
123 ifeq ($(OS),IOS)
124 $(eval $(call gb_Library_add_cxxflags,sal,\
125 $(gb_OBJCXXFLAGS) \
127 endif
129 ifeq ($(OS),ANDROID)
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 \
140 sal/textenc/tables \
141 sal/textenc/tcvtbyte \
142 sal/textenc/tcvtmb \
143 sal/textenc/tcvtutf7 \
145 endif
147 ifneq ($(OS),WNT)
148 $(eval $(call gb_Library_add_exception_objects,sal,\
149 sal/osl/unx/conditn \
150 sal/osl/unx/file \
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 \
157 sal/osl/unx/memory \
158 sal/osl/unx/module \
159 sal/osl/unx/mutex \
160 sal/osl/unx/nlsupport \
161 sal/osl/unx/pipe \
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 \
167 sal/osl/unx/signal \
168 sal/osl/unx/socket \
169 sal/osl/unx/system \
170 sal/osl/unx/tempfile \
171 sal/osl/unx/thread \
172 sal/osl/unx/time \
173 $(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \
176 # Note that the uunxapi.mm file just includes the uunxapi.cxx one
177 ifeq ($(OS),MACOSX)
178 $(eval $(call gb_Library_add_objcxxobjects,sal,\
179 sal/osl/unx/uunxapi \
181 else
182 $(eval $(call gb_Library_add_exception_objects,sal,\
183 sal/osl/unx/uunxapi \
185 endif
187 ifneq ($(filter $(OS),MACOSX IOS),)
188 $(eval $(call gb_Library_add_exception_objects,sal,\
189 sal/osl/unx/osxlocale \
191 endif
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 \
196 endif
197 ifneq ($(filter $(CPUNAME),SPARC64 SPARC),)
198 $(eval $(call gb_Library_add_asmobjects,sal,\
199 sal/osl/unx/asm/interlck_sparc \
201 else
202 $(eval $(call gb_Library_add_exception_objects,sal,\
203 sal/osl/unx/interlck \
205 endif
207 else # $(OS) == WNT
209 # FIXME ?
210 # .IF "$(CCNUMVER)" >= "001400000000"
211 # $(eval $(call gb_Library_add_defs,sal,\
212 -D_CRT_NON_CONFORMING_SWPRINTFS \
214 # .ENDIF
216 $(eval $(call gb_Library_add_exception_objects,sal,\
217 sal/osl/w32/file \
218 sal/osl/w32/file_dirvol \
219 sal/osl/w32/file_url \
220 sal/osl/w32/module \
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 \
226 sal/osl/w32/signal \
227 sal/osl/w32/socket \
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 \
235 sal/osl/w32/memory \
236 sal/osl/w32/mutex \
237 sal/osl/w32/nlsupport \
238 sal/osl/w32/pipe \
239 sal/osl/w32/security \
240 sal/osl/w32/thread \
241 sal/osl/w32/time \
244 endif # ifneq ($(OS),WNT)
246 # vim: set noet sw=4 ts=4: