Update git submodules
[LibreOffice.git] / xmlsecurity / CppunitTest_xmlsecurity_signing2.mk
blob0cd4501219795d74c7c3ee5bc2661c4e8fba02de
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 $(eval $(call gb_CppunitTest_CppunitTest,xmlsecurity_signing2))
14 $(eval $(call gb_CppunitTest_add_exception_objects,xmlsecurity_signing2, \
15 xmlsecurity/qa/unit/signing/signing2 \
18 $(eval $(call gb_CppunitTest_use_libraries,xmlsecurity_signing2, \
19 comphelper \
20 cppuhelper \
21 cppu \
22 sal \
23 sax \
24 sfx \
25 svx \
26 subsequenttest \
27 test \
28 tl \
29 unotest \
30 utl \
31 vcl \
32 xmlsecurity \
33 xsec_xmlsec \
36 $(eval $(call gb_CppunitTest_use_externals,xmlsecurity_signing2,\
37 boost_headers \
38 libxml2 \
41 ifneq ($(OS),WNT)
42 ifneq (,$(ENABLE_NSS))
43 $(eval $(call gb_CppunitTest_use_externals,xmlsecurity_signing2,\
44 nssutil3 \
46 endif
47 endif
49 $(eval $(call gb_CppunitTest_set_include,xmlsecurity_signing2,\
50 -I$(SRCDIR)/xmlsecurity/inc \
51 $$(INCLUDE) \
54 $(eval $(call gb_CppunitTest_use_sdk_api,xmlsecurity_signing2))
56 $(eval $(call gb_CppunitTest_use_ure,xmlsecurity_signing2))
57 $(eval $(call gb_CppunitTest_use_vcl,xmlsecurity_signing2))
59 $(eval $(call gb_CppunitTest_use_uiconfigs,xmlsecurity_signing2, \
60 svt \
63 $(eval $(call gb_CppunitTest_use_rdb,xmlsecurity_signing2,services))
65 $(eval $(call gb_CppunitTest_use_configuration,xmlsecurity_signing2))
67 ifeq ($(ENABLE_POPPLER),TRUE)
68 $(eval $(call gb_CppunitTest_use_executable,xmlsecurity_signing2,xpdfimport))
69 endif
71 # various hacks to make unit test work on Linux more often
72 ifeq ($(OS),LINUX)
73 # reset the LD_LIBRARY_PATH for spawned GPG processes
74 $(call gb_CppunitTest_get_target,xmlsecurity_signing2): \
75 EXTRA_ENV_VARS += \
76 LIBO_LD_PATH=$$LD_LIBRARY_PATH
77 endif
79 $(eval $(call gb_CppunitTest_use_custom_headers,xmlsecurity_signing2,\
80 officecfg/registry \
83 ifeq ($(OS),WNT)
84 # Initializing DocumentSignatureManager will require gpgme-w32spawn.exe in workdir/LinkTarget/Executable
85 $(eval $(call gb_CppunitTest_use_packages,xmlsecurity_signing2,\
86 $(call gb_Helper_optional,GPGMEPP,gpgmepp)\
88 endif
90 $(eval $(call gb_CppunitTest_add_arguments,xmlsecurity_signing2, \
91 -env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \
94 # vim: set noet sw=4 ts=4: