summaryrefslogtreecommitdiff
path: root/connectivity/CppunitTest_connectivity_commontools.mk
blob: a8f4976310df631c9059b9ae7000c3e7f2503042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

$(eval $(call gb_CppunitTest_CppunitTest,connectivity_commontools))

$(eval $(call gb_CppunitTest_set_include,connectivity_commontools,\
	-I$(SRCDIR)/connectivity/source/inc \
	$$(INCLUDE) \
))

$(eval $(call gb_CppunitTest_use_ure,connectivity_commontools))
$(eval $(call gb_CppunitTest_use_vcl,connectivity_commontools))

$(eval $(call gb_CppunitTest_use_external,connectivity_commontools,boost_headers))

$(eval $(call gb_CppunitTest_use_sdk_api,connectivity_commontools))

ifeq ($(COM),GCC)
ifneq ($(COM_IS_CLANG),TRUE)
$(eval $(call gb_CppunitTest_add_cxxflags,connectivity_commontools,\
	-fpermissive \
))
endif
endif

# In mergedlibs mode we have multiply-defined symbols, which Visual Studio
# does not like. There is no good solution, so just force it.
ifeq ($(COM),MSC)
ifneq (,$(MERGELIBS))
$(eval $(call gb_CppunitTest_add_ldflags,connectivity_commontools,\
	 /FORCE:MULTIPLE \
))
endif
endif

$(eval $(call gb_CppunitTest_add_exception_objects,connectivity_commontools, \
	connectivity/qa/connectivity/commontools/FValue_test \
))

$(eval $(call gb_CppunitTest_use_library_objects,connectivity_commontools,dbtools))

$(eval $(call gb_CppunitTest_use_libraries,connectivity_commontools, \
    comphelper \
    cppu \
    cppuhelper \
    i18nlangtag \
    $(if $(ENABLE_JAVA), \
        jvmaccess) \
    sal \
    salhelper \
    test \
    unotest \
    utl \
    tl \
    svt \
    $(gb_UWINAPI) \
))

$(eval $(call gb_CppunitTest_use_components,connectivity_commontools,\
    configmgr/source/configmgr \
    i18npool/util/i18npool \
    ucb/source/core/ucb1 \
    ucb/source/ucp/file/ucpfile1 \
))

$(eval $(call gb_CppunitTest_use_configuration,connectivity_commontools))

# vim: set noet sw=4 ts=4: