blob: f37c0ae52e683d066f4bf0ebd8e089a91faff151 [file] [log] [blame]
Miklos Vajna9d754a52018-07-09 18:03:04 +02001# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2#*************************************************************************
3#
Michael Meeksd037b812026-03-26 15:06:16 +00004# This file is part of the Collabora Office project.
Miklos Vajna9d754a52018-07-09 18:03:04 +02005#
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/.
9#
10#*************************************************************************
11
12$(eval $(call gb_CppunitTest_CppunitTest,sw_unowriter))
13
Luboš Luňák2c3f9fa2019-09-27 15:32:19 +020014$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_unowriter))
15
Miklos Vajna9d754a52018-07-09 18:03:04 +020016$(eval $(call gb_CppunitTest_add_exception_objects,sw_unowriter, \
17 sw/qa/extras/unowriter/unowriter \
18))
19
Andrea Gelmini5c8d1912019-08-13 08:49:31 +020020# note: this links msword only for the reason to have an order dependency,
Miklos Vajna9d754a52018-07-09 18:03:04 +020021# because "make sw.check" will not see the dependency through services.rdb
22$(eval $(call gb_CppunitTest_use_libraries,sw_unowriter, \
23 comphelper \
24 cppu \
25 cppuhelper \
26 editeng \
27 msword \
28 sal \
29 sfx \
Xisco Fauli4170b942022-11-08 18:27:05 +010030 subsequenttest \
Miklos Vajna9d754a52018-07-09 18:03:04 +020031 svl \
32 svt \
33 svxcore \
34 sw \
Miklos Vajna6353c512020-07-30 21:18:46 +020035 swqahelper \
Miklos Vajna9d754a52018-07-09 18:03:04 +020036 test \
37 unotest \
38 vcl \
39 tl \
Miklos Vajnaba602042019-01-04 11:04:05 +010040 tk \
Miklos Vajna9d754a52018-07-09 18:03:04 +020041 utl \
42))
43
44$(eval $(call gb_CppunitTest_use_externals,sw_unowriter,\
45 boost_headers \
46 libxml2 \
47))
48
49$(eval $(call gb_CppunitTest_set_include,sw_unowriter,\
50 -I$(SRCDIR)/sw/inc \
51 -I$(SRCDIR)/sw/source/core/inc \
Miklos Vajnaa4b67db2018-12-04 10:16:03 +010052 -I$(SRCDIR)/sw/source/uibase/inc \
Miklos Vajna423e1ce2019-11-07 21:47:22 +010053 -I$(SRCDIR)/sw/qa/inc \
Miklos Vajna9d754a52018-07-09 18:03:04 +020054 $$(INCLUDE) \
55))
56
57$(eval $(call gb_CppunitTest_use_api,sw_unowriter,\
58 udkapi \
59 offapi \
60 oovbaapi \
61))
62
63$(eval $(call gb_CppunitTest_use_ure,sw_unowriter))
64$(eval $(call gb_CppunitTest_use_vcl,sw_unowriter))
65
66$(eval $(call gb_CppunitTest_use_rdb,sw_unowriter,services))
67
Michael Stahl6204dfe2025-08-06 12:59:26 +020068$(eval $(call gb_CppunitTest_use_custom_headers,sw_unowriter,\
69 officecfg/registry \
70))
71
Miklos Vajna9d754a52018-07-09 18:03:04 +020072$(eval $(call gb_CppunitTest_use_configuration,sw_unowriter))
73
74$(eval $(call gb_CppunitTest_use_uiconfigs,sw_unowriter, \
75 modules/swriter \
76))
77
78$(call gb_CppunitTest_get_target,sw_unowriter): \
Noel Grandin191e3f82024-02-19 15:48:38 +020079 $(call gb_Library_get_target,i18npool)
Miklos Vajna9d754a52018-07-09 18:03:04 +020080
Jan-Marek Glogowski06859752018-09-30 15:34:07 +000081$(eval $(call gb_CppunitTest_use_more_fonts,sw_unowriter))
Miklos Vajna9d754a52018-07-09 18:03:04 +020082
Miklos Vajna1bef59c2024-01-11 08:19:36 +010083ifneq ($(filter MORE_FONTS,$(BUILD_TYPE)),)
84$(eval $(call gb_CppunitTest_set_non_application_font_use,sw_unowriter,abort))
85endif
86
Miklos Vajna9d754a52018-07-09 18:03:04 +020087# vim: set noet sw=4 ts=4: