-Werror=maybe-uninitialized
[LibreOffice.git] / sw / ooxmlexport_setup.mk
blob404ee51534383d7960554a27bb200222a5761e20
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 svl \
20 sw \
21 swqahelper \
22 test \
23 tl \
24 unotest \
25 utl \
26 vcl \
27 svxcore
28 endef
30 # template for ooxmlexport tests (there are several so that they can be run in parallel)
31 define sw_ooxmlexport_test
33 $(eval $(call gb_CppunitTest_CppunitTest,sw_ooxmlexport$(1)))
35 $(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_ooxmlexport$(1)))
37 $(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxmlexport$(1), \
38 sw/qa/extras/ooxmlexport/ooxmlexport$(1) \
41 $(eval $(call gb_CppunitTest_use_libraries,sw_ooxmlexport$(1), \
42 $(sw_ooxmlexport_libraries) \
45 $(eval $(call gb_CppunitTest_use_externals,sw_ooxmlexport$(1),\
46 boost_headers \
47 libxml2 \
50 $(eval $(call gb_CppunitTest_set_include,sw_ooxmlexport$(1),\
51 -I$(SRCDIR)/sw/inc \
52 -I$(SRCDIR)/sw/source/core/inc \
53 -I$(SRCDIR)/sw/qa/inc \
54 $$(INCLUDE) \
57 $(eval $(call gb_CppunitTest_use_api,sw_ooxmlexport$(1),\
58 udkapi \
59 offapi \
60 oovbaapi \
63 $(eval $(call gb_CppunitTest_use_ure,sw_ooxmlexport$(1)))
64 $(eval $(call gb_CppunitTest_use_vcl,sw_ooxmlexport$(1)))
66 $(eval $(call gb_CppunitTest_use_rdb,sw_ooxmlexport$(1),services))
68 $(eval $(call gb_CppunitTest_use_configuration,sw_ooxmlexport$(1)))
70 $(eval $(call gb_CppunitTest_use_uiconfigs,sw_ooxmlexport$(1),\
71 modules/swriter \
72 sfx \
73 svt \
76 $(eval $(call gb_CppunitTest_use_packages,sw_ooxmlexport$(1),\
77 oox_customshapes \
78 oox_generated \
81 $(call gb_CppunitTest_get_target,sw_ooxmlexport$(1)) : $(call gb_Library_get_target,iti)
83 $(eval $(call gb_CppunitTest_use_more_fonts,sw_ooxmlexport$(1)))
85 ifeq ($(OS),WNT)
86 # gpgme-w32spawn.exe is needed in workdir/LinkTarget/Executable
87 $(eval $(call gb_CppunitTest_use_packages,sw_ooxmlexport$(1),\
88 $(call gb_Helper_optional,GPGMEPP,gpgmepp)\
90 endif
93 $(eval $(call gb_CppunitTest_add_arguments,sw_ooxmlexport$(1), \
94 -env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \
97 endef
99 # vim: set noet sw=4 ts=4: