Version 7.5.1.1, tag libreoffice-7.5.1.1
[LibreOffice.git] / sw / ooxmlexport_setup.mk
blob8f45d30be7c3c2e3002faf9f1abad3c353002ddf
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 define sw_ooxmlexport_libraries
13 comphelper \
14 cppu \
15 cppuhelper \
16 editeng \
17 sal \
18 sfx \
19 subsequenttest \
20 svl \
21 sw \
22 swqahelper \
23 test \
24 tl \
25 unotest \
26 utl \
27 vcl \
28 svxcore
29 endef
31 # template for ooxmlexport tests (there are several so that they can be run in parallel)
32 define sw_ooxmlexport_test
34 $(eval $(call gb_CppunitTest_CppunitTest,sw_ooxmlexport$(1)))
36 $(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_ooxmlexport$(1)))
38 $(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxmlexport$(1), \
39 sw/qa/extras/ooxmlexport/ooxmlexport$(1) \
42 $(eval $(call gb_CppunitTest_use_libraries,sw_ooxmlexport$(1), \
43 $(sw_ooxmlexport_libraries) \
46 $(eval $(call gb_CppunitTest_use_externals,sw_ooxmlexport$(1),\
47 boost_headers \
48 libxml2 \
51 $(eval $(call gb_CppunitTest_set_include,sw_ooxmlexport$(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_ooxmlexport$(1),\
60 udkapi \
61 offapi \
62 oovbaapi \
65 $(eval $(call gb_CppunitTest_use_ure,sw_ooxmlexport$(1)))
66 $(eval $(call gb_CppunitTest_use_vcl,sw_ooxmlexport$(1)))
68 $(eval $(call gb_CppunitTest_use_rdb,sw_ooxmlexport$(1),services))
70 $(eval $(call gb_CppunitTest_use_configuration,sw_ooxmlexport$(1)))
72 $(eval $(call gb_CppunitTest_use_uiconfigs,sw_ooxmlexport$(1),\
73 modules/swriter \
74 sfx \
75 svt \
78 $(eval $(call gb_CppunitTest_use_packages,sw_ooxmlexport$(1),\
79 oox_customshapes \
80 oox_generated \
83 $(call gb_CppunitTest_get_target,sw_ooxmlexport$(1)) : $(call gb_Library_get_target,iti)
85 $(eval $(call gb_CppunitTest_use_more_fonts,sw_ooxmlexport$(1)))
87 ifeq ($(OS),WNT)
88 # gpgme-w32spawn.exe is needed in workdir/LinkTarget/Executable
89 $(eval $(call gb_CppunitTest_use_packages,sw_ooxmlexport$(1),\
90 $(call gb_Helper_optional,GPGMEPP,gpgmepp)\
92 endif
95 $(eval $(call gb_CppunitTest_add_arguments,sw_ooxmlexport$(1), \
96 -env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \
99 endef
101 # vim: set noet sw=4 ts=4: