bump product version to 6.4.0.3
[LibreOffice.git] / jurt / Library_jpipe.mk
blob204da654c55300c17f8f21215e628cab9a811667
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_Library_Library,jpipe))
12 ifeq ($(OS),WNT)
14 # The real library is called jpipx on Windows. We build only a wrapper
15 # for it here.
16 $(eval $(call gb_Library_add_cobjects,jpipe,\
17 jurt/source/pipe/wrapper/wrapper \
20 else
22 ifeq ($(COM_IS_CLANG),TRUE)
23 ifneq ($(filter -fsanitize=%,$(gb_CC)),)
24 Library_jpipe__staticsalhack = TRUE
25 endif
26 endif
28 ifeq ($(Library_jpipe__staticsalhack),)
30 $(eval $(call gb_Library_use_libraries,jpipe,\
31 sal \
34 $(eval $(call gb_Library_add_cobjects,jpipe,\
35 jurt/source/pipe/com_sun_star_lib_connections_pipe_PipeConnection \
38 else
40 # HACK for Clang -fsanitize=address etc. to build libjpipe.so (dlopen'ed from
41 # java executable) without dependence on __asan_* etc. symbols (expected to be
42 # provided by the executable), incl. statically linking in the relevant parts of
43 # sal:
45 $(eval $(call gb_Library_add_cobjects,jpipe, \
46 jurt/source/pipe/com_sun_star_lib_connections_pipe_PipeConnection \
49 $(eval $(call gb_Library_add_exception_objects,jpipe, \
50 jurt/source/pipe/staticsalhack \
53 $(eval $(call gb_Library_add_defs,jpipe, \
54 -DRTL_OS="\"$(RTL_OS)"\" \
55 -DRTL_ARCH="\"$(RTL_ARCH)"\" \
58 $(eval $(call gb_Library_set_include,jpipe, \
59 $$(INCLUDE) \
60 -I$(SRCDIR) \
61 -I$(SRCDIR)/sal/inc \
62 -I$(SRCDIR)/sal/osl/unx \
63 -I$(SRCDIR)/sal/rtl \
64 -I$(SRCDIR)/sal/textenc \
67 $(eval $(call gb_Library_use_externals,jpipe, \
68 boost_headers \
71 ifeq ($(OS),MACOSX)
72 $(eval $(call gb_Library_use_system_darwin_frameworks,jpipe, \
73 CoreFoundation \
75 endif
77 $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktarget,jpipe)): \
78 gb_CC := $(filter-out -fsanitize%,$(gb_CC))
79 $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktarget,jpipe)): \
80 gb_CXX := $(filter-out -fsanitize%,$(gb_CXX))
82 endif
83 endif
85 # vim:set noet sw=4 ts=4: