dev-install seems to poison the env
[LibreOffice.git] / sc / CppunitTest_sc_macros_test.mk
blobedc0e608e5b387431895eded06faaeae31772de4
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,sc_macros_test))
33 $(eval $(call gb_CppunitTest_add_exception_objects,sc_macros_test, \
34 sc/qa/unit/macros-test \
37 $(eval $(call gb_CppunitTest_add_linked_libs,sc_macros_test, \
38 avmedia \
39 basegfx \
40 comphelper \
41 cppu \
42 cppuhelper \
43 drawinglayer \
44 editeng \
45 fileacc \
46 for \
47 forui \
48 i18nisolang1 \
49 msfilter \
50 oox \
51 sal \
52 salhelper \
53 sax \
54 sb \
55 sc \
56 sfx \
57 sot \
58 svl \
59 svt \
60 svx \
61 svxcore \
62 test \
63 tl \
64 tk \
65 ucbhelper \
66 unotest \
67 utl \
68 vbahelper \
69 vcl \
70 xo \
71 $(gb_STDLIBS) \
74 $(eval $(call gb_CppunitTest_set_include,sc_macros_test,\
75 -I$(realpath $(SRCDIR)/sc/inc/pch) \
76 -I$(realpath $(SRCDIR)/sc/source/ui/inc) \
77 -I$(realpath $(SRCDIR)/sc/inc) \
78 $$(INCLUDE) \
79 -I$(OUTDIR)/inc \
82 $(eval $(call gb_CppunitTest_add_api,sc_macros_test,\
83 offapi \
84 oovbaapi \
85 udkapi \
88 $(eval $(call gb_CppunitTest_uses_ure,sc_macros_test))
90 $(eval $(call gb_CppunitTest_add_type_rdbs,sc_macros_test,\
91 oovbaapi \
92 types \
95 $(eval $(call gb_CppunitTest_add_components,sc_macros_test,\
96 basic/util/sb \
97 comphelper/util/comphelp \
98 dbaccess/util/dba \
99 fileaccess/source/fileacc \
100 filter/source/config/cache/filterconfig1 \
101 forms/util/frm \
102 framework/util/fwk \
103 i18npool/util/i18npool \
104 oox/util/oox \
105 package/source/xstor/xstor \
106 package/util/package2 \
107 sax/source/expatwrap/expwrap \
108 sax/source/fastparser/fastsax \
109 sc/util/sc \
110 sc/util/scd \
111 sc/util/scfilt \
112 sc/util/vbaobj \
113 scripting/source/basprov/basprov \
114 scripting/util/scriptframe \
115 sfx2/util/sfx \
116 sot/util/sot \
117 svl/source/fsstor/fsstorage \
118 toolkit/util/tk \
119 unotools/util/utl \
120 unoxml/source/rdf/unordf \
121 unoxml/source/service/unoxml \
124 $(eval $(call gb_CppunitTest_add_old_components,sc_macros_test,\
125 configmgr \
126 ucb1 \
127 ucpfile1 \
128 ucptdoc1 \
131 $(eval $(call gb_CppunitTest_set_args,sc_macros_test,\
132 --headless \
133 --protector unoexceptionprotector$(gb_Library_DLLEXT) unoexceptionprotector \
134 "-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(SRCDIR)/sc/qa/unit/data/registry)" \
136 # .../spool is required for the (somewhat strange) filter configuration
138 # we need to
139 # a) explicitly depend on library msword because it is not implied by a link
140 # relation
141 # b) explicitly depend on the sc resource files needed at unit-test runtime
142 $(call gb_CppunitTest_get_target,sc_macros_test) : $(call gb_Library_get_target,scfilt) $(WORKDIR)/AllLangRes/sc
144 # vim: set noet sw=4 ts=4: