Fix a UITest on Windows
[LibreOffice.git] / sw / layoutwriter_setup.mk
blob9d10fa9ac2c63947439237eefcc48a58a8380038
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 layoutwriter tests (there are several so that they can be run in parallel)
13 define sw_layoutwriter_test
15 $(eval $(call gb_CppunitTest_CppunitTest,sw_layoutwriter$(1)))
17 $(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_layoutwriter$(1)))
19 $(eval $(call gb_CppunitTest_add_exception_objects,sw_layoutwriter$(1), \
20 sw/qa/extras/layout/layout$(1) \
23 # note: this links msword only for the reason to have an order dependency,
24 # because "make sw.check" will not see the dependency through services.rdb
25 $(eval $(call gb_CppunitTest_use_libraries,sw_layoutwriter$(1), \
26 comphelper \
27 cppu \
28 cppuhelper \
29 editeng \
30 msword \
31 sal \
32 sfx \
33 svl \
34 svt \
35 svxcore \
36 sw \
37 swqahelper \
38 test \
39 unotest \
40 vcl \
41 tl \
42 utl \
43 i18nlangtag \
46 $(eval $(call gb_CppunitTest_use_externals,sw_layoutwriter$(1),\
47 boost_headers \
48 libxml2 \
51 $(eval $(call gb_CppunitTest_set_include,sw_layoutwriter$(1),\
52 -I$(SRCDIR)/sw/inc \
53 -I$(SRCDIR)/sw/source/core/inc \
54 -I$(SRCDIR)/sw/source/uibase/inc \
55 -I$(SRCDIR)/sw/qa/inc \
56 $$(INCLUDE) \
59 $(eval $(call gb_CppunitTest_use_api,sw_layoutwriter$(1),\
60 udkapi \
61 offapi \
62 oovbaapi \
65 $(eval $(call gb_CppunitTest_use_ure,sw_layoutwriter$(1)))
66 $(eval $(call gb_CppunitTest_use_vcl,sw_layoutwriter$(1)))
68 $(eval $(call gb_CppunitTest_use_rdb,sw_layoutwriter$(1),services))
70 $(eval $(call gb_CppunitTest_use_custom_headers,sw_layoutwriter$(1),\
71 officecfg/registry \
74 $(eval $(call gb_CppunitTest_use_configuration,sw_layoutwriter$(1)))
76 $(eval $(call gb_CppunitTest_use_uiconfigs,sw_layoutwriter$(1), \
77 modules/swriter \
78 sfx \
79 svt \
82 $(call gb_CppunitTest_get_target,sw_layoutwriter$(1)): \
83 $(call gb_Library_get_target,textconv_dict)
85 # assert if font/glyph fallback occurs
86 $(call gb_CppunitTest_get_target,sw_layoutwriter$(1)): \
87 EXTRA_ENV_VARS := \
88 SAL_ABORT_ON_NON_APPLICATION_FONT_USE=1
90 $(eval $(call gb_CppunitTest_use_more_fonts,sw_layoutwriter$(1)))
92 endef
94 # vim: set noet sw=4 ts=4: