Avoid potential negative array index access to cached text.
[LibreOffice.git] / sc / common_unoapi_tests.mk
blob025639a4de20c414908097aaa201209f347cb809
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 unoapi tests
13 define sc_unoapi_common
15 $(eval $(call gb_CppunitTest_CppunitTest,sc_$(1)))
17 $(eval $(call gb_CppunitTest_use_external,sc_$(1),boost_headers))
19 $(eval $(call gb_Library_use_common_precompiled_header,sc_$(1)))
21 $(eval $(call gb_CppunitTest_add_exception_objects,sc_$(1), \
22 sc/qa/extras/sc$(1) \
25 $(eval $(call gb_CppunitTest_use_libraries,sc_$(1), \
26 comphelper \
27 cppu \
28 cppuhelper \
29 sal \
30 salhelper \
31 sc \
32 subsequenttest \
33 test \
34 unotest \
35 utl \
36 tl \
37 vcl \
40 $(eval $(call gb_CppunitTest_set_include,sc_$(1),\
41 -I$(SRCDIR)/sc/inc \
42 $$(INCLUDE) \
45 $(eval $(call gb_CppunitTest_use_api,sc_$(1),\
46 offapi \
47 udkapi \
50 $(eval $(call gb_CppunitTest_use_ure,sc_$(1)))
51 $(eval $(call gb_CppunitTest_use_vcl,sc_$(1)))
53 $(eval $(call gb_CppunitTest_use_rdb,sc_$(1),services))
55 $(eval $(call gb_CppunitTest_use_configuration,sc_$(1)))
56 endef
58 # vim: set noet sw=4 ts=4: