Change-Id: I21268e5950381845eb90bf66a42a99adc3821eaa Reviewed-on: https://gerrit.libreoffice.org/51493 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#*************************************************************************
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
#*************************************************************************
|
|
|
|
$(eval $(call gb_CppunitTest_CppunitTest,xmlsecurity_signing))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,xmlsecurity_signing, \
|
|
xmlsecurity/qa/unit/signing/signing \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,xmlsecurity_signing, \
|
|
comphelper \
|
|
cppuhelper \
|
|
cppu \
|
|
sal \
|
|
sax \
|
|
sfx \
|
|
test \
|
|
tl \
|
|
unotest \
|
|
utl \
|
|
xmlsecurity \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_externals,xmlsecurity_signing,\
|
|
boost_headers \
|
|
libxml2 \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_set_include,xmlsecurity_signing,\
|
|
-I$(SRCDIR)/xmlsecurity/inc \
|
|
$$(INCLUDE) \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_sdk_api,xmlsecurity_signing))
|
|
|
|
$(eval $(call gb_CppunitTest_use_ure,xmlsecurity_signing))
|
|
$(eval $(call gb_CppunitTest_use_vcl,xmlsecurity_signing))
|
|
|
|
$(eval $(call gb_CppunitTest_use_rdb,xmlsecurity_signing,services))
|
|
|
|
$(eval $(call gb_CppunitTest_use_configuration,xmlsecurity_signing))
|
|
|
|
ifeq ($(ENABLE_PDFIMPORT),TRUE)
|
|
$(eval $(call gb_CppunitTest_use_executable,xmlsecurity_signing,xpdfimport))
|
|
endif
|
|
|
|
# various hacks to make unit test work on Linux more often
|
|
ifeq ($(OS),LINUX)
|
|
# reset the LD_LIBRARY_PATH for spawned GPG processes
|
|
$(call gb_CppunitTest_get_target,xmlsecurity_signing): \
|
|
EXTRA_ENV_VARS := \
|
|
LIBO_LD_PATH=$$LD_LIBRARY_PATH
|
|
|
|
ifneq (,$(HAVE_GPGCONF_SOCKETDIR))
|
|
# create socket dir below /run/user/ instead of in workdir
|
|
.PHONY : gb_CppunitTest_run_gpgconf
|
|
gb_CppunitTest_run_gpgconf:
|
|
GNUPGHOME=$(WORKDIR)/CppunitTest/xmlsecurity_signing.test.user \
|
|
$(GPGCONF) --create-socketdir
|
|
|
|
$(call gb_CppunitTest_get_target,xmlsecurity_signing): \
|
|
gb_CppunitTest_run_gpgconf
|
|
endif
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|