LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / sc / ucalc_setup.mk
blob73bf5ca45790fd532344941aedee1fb107a26aab
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 #*************************************************************************
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/.
10 #*************************************************************************
12 # template for ucalc tests
13 define sc_ucalc_test
15 $(eval $(call gb_CppunitTest_CppunitTest,sc_ucalc$(1)))
17 $(eval $(call gb_Library_use_common_precompiled_header,sc_ucalc$(1)))
19 $(eval $(call gb_CppunitTest_add_exception_objects,sc_ucalc$(1), \
20 sc/qa/unit/ucalc$(1) \
23 $(eval $(call gb_CppunitTest_use_library_objects,sc_ucalc$(1), \
24 sc \
25 scqahelper \
28 $(eval $(call gb_CppunitTest_use_externals,sc_ucalc$(1),\
29 boost_headers \
30 $(call gb_Helper_optional,OPENCL, \
31 clew) \
32 icu_headers \
33 icui18n \
34 icuuc \
35 libxml2 \
36 mdds_headers \
37 orcus \
38 orcus-parser \
41 $(eval $(call gb_CppunitTest_use_libraries,sc_ucalc$(1), \
42 $(call gb_Helper_optional,AVMEDIA,avmedia) \
43 basegfx \
44 comphelper \
45 cppu \
46 cppuhelper \
47 dbtools \
48 drawinglayer \
49 editeng \
50 for \
51 forui \
52 i18nlangtag \
53 i18nutil \
54 $(call gb_Helper_optional,OPENCL, \
55 opencl) \
56 sal \
57 salhelper \
58 sax \
59 sb \
60 sfx \
61 sot \
62 svl \
63 svt \
64 svx \
65 svxcore \
66 test \
67 tk \
68 tl \
69 ucbhelper \
70 unotest \
71 utl \
72 $(call gb_Helper_optional,SCRIPTING, \
73 vbahelper) \
74 vcl \
75 xo \
78 $(eval $(call gb_CppunitTest_set_include,sc_ucalc$(1),\
79 -I$(SRCDIR)/sc/source/ui/inc \
80 -I$(SRCDIR)/sc/source/core/inc \
81 -I$(SRCDIR)/sc/inc \
82 $$(INCLUDE) \
85 $(eval $(call gb_CppunitTest_use_api,sc_ucalc$(1),\
86 udkapi \
87 offapi \
88 oovbaapi \
91 $(eval $(call gb_CppunitTest_use_custom_headers,sc_ucalc$(1),\
92 officecfg/registry \
95 $(eval $(call gb_CppunitTest_use_ure,sc_ucalc$(1)))
96 $(eval $(call gb_CppunitTest_use_vcl,sc_ucalc$(1)))
98 $(eval $(call gb_CppunitTest_use_components,sc_ucalc$(1),\
99 configmgr/source/configmgr \
100 framework/util/fwk \
101 i18npool/source/search/i18nsearch \
102 i18npool/util/i18npool \
103 sax/source/expatwrap/expwrap \
104 scaddins/source/analysis/analysis \
105 scaddins/source/datefunc/date \
106 scaddins/source/pricing/pricing \
107 sfx2/util/sfx \
108 ucb/source/core/ucb1 \
109 ucb/source/ucp/file/ucpfile1 \
110 unoxml/source/service/unoxml \
111 uui/util/uui \
112 vcl/vcl.common \
115 $(eval $(call gb_CppunitTest_add_libs,sc_ucalc$(1),\
116 $(if $(filter LINUX,$(OS)), \
117 -lrt \
121 $(eval $(call gb_CppunitTest_use_configuration,sc_ucalc$(1)))
123 endef
125 # vim: set noet sw=4 ts=4: