Version 7.1.7.1, tag libreoffice-7.1.7.1
[LibreOffice.git] / xmlsecurity / CppunitTest_xmlsecurity_signing.mk
bloba3cdc25e6d7d077b1c03a4c2902b3526bb8984c2
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_signing))
14 $(eval $(call gb_CppunitTest_add_exception_objects,xmlsecurity_signing, \
15 xmlsecurity/qa/unit/signing/signing \
16 xmlsecurity/qa/unit/signing/signing2 \
19 $(eval $(call gb_CppunitTest_use_libraries,xmlsecurity_signing, \
20 comphelper \
21 cppuhelper \
22 cppu \
23 sal \
24 sax \
25 sfx \
26 svx \
27 test \
28 tl \
29 unotest \
30 utl \
31 vcl \
32 xmlsecurity \
35 $(eval $(call gb_CppunitTest_use_externals,xmlsecurity_signing,\
36 boost_headers \
37 libxml2 \
38 $(if $(filter PDFIUM,$(BUILD_TYPE)),pdfium) \
41 $(eval $(call gb_CppunitTest_set_include,xmlsecurity_signing,\
42 -I$(SRCDIR)/xmlsecurity/inc \
43 $$(INCLUDE) \
46 $(eval $(call gb_CppunitTest_use_sdk_api,xmlsecurity_signing))
48 $(eval $(call gb_CppunitTest_use_ure,xmlsecurity_signing))
49 $(eval $(call gb_CppunitTest_use_vcl,xmlsecurity_signing))
51 $(eval $(call gb_CppunitTest_use_uiconfigs,xmlsecurity_signing, \
52 svt \
55 $(eval $(call gb_CppunitTest_use_rdb,xmlsecurity_signing,services))
57 $(eval $(call gb_CppunitTest_use_configuration,xmlsecurity_signing))
59 ifeq ($(ENABLE_POPPLER),TRUE)
60 $(eval $(call gb_CppunitTest_use_executable,xmlsecurity_signing,xpdfimport))
61 endif
63 # various hacks to make unit test work on Linux more often
64 ifeq ($(OS),LINUX)
65 # reset the LD_LIBRARY_PATH for spawned GPG processes
66 $(call gb_CppunitTest_get_target,xmlsecurity_signing): \
67 EXTRA_ENV_VARS := \
68 LIBO_LD_PATH=$$LD_LIBRARY_PATH
69 endif
71 $(eval $(call gb_CppunitTest_use_custom_headers,xmlsecurity_signing,\
72 officecfg/registry \
75 ifeq ($(OS),WNT)
76 # Initializing DocumentSignatureManager will require gpgme-w32spawn.exe in workdir/LinkTarget/Executable
77 $(eval $(call gb_CppunitTest_use_packages,xmlsecurity_signing,\
78 $(call gb_Helper_optional,GPGMEPP,gpgmepp)\
80 endif
82 # vim: set noet sw=4 ts=4: