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
))
14 # The real library is called jpipx on Windows. We build only a wrapper
16 $(eval
$(call gb_Library_add_cobjects
,jpipe
,\
17 jurt
/source
/pipe
/wrapper
/wrapper \
22 ifeq ($(COM_IS_CLANG
),TRUE
)
23 ifneq ($(filter -fsanitize
=%,$(gb_CC
)),)
24 Library_jpipe__staticsalhack
= TRUE
28 ifeq ($(Library_jpipe__staticsalhack
),)
30 $(eval
$(call gb_Library_use_libraries
,jpipe
,\
34 $(eval
$(call gb_Library_add_cobjects
,jpipe
,\
35 jurt
/source
/pipe
/com_sun_star_lib_connections_pipe_PipeConnection \
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
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
, \
62 -I
$(SRCDIR
)/sal
/osl
/unx \
64 -I
$(SRCDIR
)/sal
/textenc \
67 $(eval
$(call gb_Library_use_externals
,jpipe
, \
72 $(eval
$(call gb_Library_use_system_darwin_frameworks
,jpipe
, \
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
))
85 # vim:set noet sw=4 ts=4: