make gbuild makefiles run independant of pwd again
[LibreOffice.git] / sw / CppunitTest_sw_swdoc_test.mk
blob6006b7fa04bd996f73baaf054bcd7208750fef6f
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 #*************************************************************************
3 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License or as specified alternatively below. You may obtain a copy of
8 # the License at http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
15 # The Initial Developer of the Original Code is
16 # Caolán McNamara, Red Hat, Inc. <caolanm@redhat.com>
17 # Portions created by the Initial Developer are Copyright (C) 2011 the
18 # Initial Developer. All Rights Reserved.
20 # Major Contributor(s):
22 # For minor contributions see the git repository.
24 # Alternatively, the contents of this file may be used under the terms of
25 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
26 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
27 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
28 # instead of those above.
29 #*************************************************************************
31 $(eval $(call gb_CppunitTest_CppunitTest,sw_swdoc_test))
33 $(eval $(call gb_CppunitTest_add_exception_objects,sw_swdoc_test, \
34 sw/qa/core/swdoc-test \
35 sw/qa/core/Test-BigPtrArray \
38 $(eval $(call gb_CppunitTest_add_library_objects,sw_swdoc_test,sw))
40 $(eval $(call gb_CppunitTest_add_linked_libs,sw_swdoc_test, \
41 avmedia \
42 basegfx \
43 comphelper \
44 cppu \
45 cppuhelper \
46 drawinglayer \
47 editeng \
48 i18nisolang1 \
49 i18nutil \
50 lng \
51 oox \
52 sal \
53 salhelper \
54 sax \
55 sb \
56 sfx \
57 sot \
58 svl \
59 svt \
60 svx \
61 svxcore \
62 swd \
63 test \
64 tk \
65 tl \
66 ucbhelper \
67 utl \
68 vbahelper \
69 vcl \
70 xo \
71 $(gb_STDLIBS) \
74 $(eval $(call gb_CppunitTest_use_externals,sw_swdoc_test,\
75 icuuc \
76 libxml2 \
79 $(eval $(call gb_CppunitTest_set_include,sw_swdoc_test,\
80 -I$(realpath $(SRCDIR)/sw/inc/pch) \
81 -I$(realpath $(SRCDIR)/sw/source/ui/inc) \
82 -I$(realpath $(SRCDIR)/sw/inc) \
83 $$(INCLUDE) \
84 -I$(OUTDIR)/inc \
87 $(eval $(call gb_CppunitTest_add_api,sw_swdoc_test,\
88 offapi \
89 udkapi \
92 $(eval $(call gb_CppunitTest_uses_ure,sw_swdoc_test))
94 $(eval $(call gb_CppunitTest_add_type_rdbs,sw_swdoc_test,\
95 types \
98 $(eval $(call gb_CppunitTest_add_components,sw_swdoc_test,\
99 sfx2/util/sfx \
100 framework/util/fwk \
101 unoxml/source/service/unoxml \
102 fileaccess/source/fileacc \
103 comphelper/util/comphelp \
104 i18npool/util/i18npool \
107 $(eval $(call gb_CppunitTest_add_old_components,sw_swdoc_test,\
108 configmgr \
109 ucb1 \
110 ucpfile1 \
113 $(call gb_CppunitTest_get_target,sw_swdoc_test) : \
114 $(call gb_AllLangResTarget_get_target,sw)
116 $(eval $(call gb_CppunitTest_set_args,sw_swdoc_test,\
117 --headless \
118 --protector unoexceptionprotector$(gb_Library_DLLEXT) unoexceptionprotector \
119 "-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
122 # we need to explicitly depend on the sw resource files needed at unit-test
123 # runtime
124 $(call gb_CppunitTest_get_target,sw_swdoc_test) : $(WORKDIR)/AllLangRes/sw
126 # vim: set noet sw=4 ts=4: