1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_Library_Library
,xsec_xmlsec
))
12 $(eval
$(call gb_Library_set_componentfile
,xsec_xmlsec
,xmlsecurity
/util
/xsec_xmlsec
))
14 $(eval
$(call gb_Library_set_include
,xsec_xmlsec
,\
16 -I
$(SRCDIR
)/xmlsecurity
/inc \
17 -I
$(SRCDIR
)/xmlsecurity
/source
/gpg \
18 -I
$(SRCDIR
)/xmlsecurity
/source
/xmlsec \
19 -I
$(call gb_UnpackedTarball_get_dir
,xmlsec
/include) \
22 $(eval
$(call gb_Library_use_custom_headers
,xsec_xmlsec
,\
26 $(eval
$(call gb_Library_use_sdk_api
,xsec_xmlsec
))
28 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
30 -DXSECXMLSEC_DLLIMPLEMENTATION \
33 $(eval
$(call gb_Library_set_precompiled_header
,xsec_xmlsec
,xmlsecurity
/inc
/pch
/precompiled_xsec_xmlsec
))
35 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
46 ifeq ($(SYSTEM_XMLSEC
),)
47 $(eval
$(call gb_Library_use_packages
,xsec_xmlsec
,\
52 $(eval
$(call gb_Library_use_externals
,xsec_xmlsec
,\
59 $(eval
$(call gb_Library_add_exception_objects
,xsec_xmlsec
,\
60 xmlsecurity
/source
/xmlsec
/biginteger \
61 xmlsecurity
/source
/xmlsec
/certificateextension_certextn \
62 xmlsecurity
/source
/xmlsec
/errorcallback \
63 xmlsecurity
/source
/xmlsec
/saxhelper \
64 xmlsecurity
/source
/xmlsec
/xmldocumentwrapper_xmlsecimpl \
65 xmlsecurity
/source
/xmlsec
/xmlelementwrapper_xmlsecimpl \
66 xmlsecurity
/source
/xmlsec
/xmlsec_init \
67 xmlsecurity
/source
/xmlsec
/xmlstreamio \
68 xmlsecurity
/source
/xmlsec
/nss
/ciphercontext \
69 xmlsecurity
/source
/xmlsec
/nss
/digestcontext \
70 xmlsecurity
/source
/xmlsec
/nss
/nssinitializer \
73 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
74 $(eval
$(call gb_Library_add_exception_objects
,xsec_xmlsec
,\
75 xmlsecurity
/source
/gpg
/CertificateImpl \
76 xmlsecurity
/source
/gpg
/CipherContext \
77 xmlsecurity
/source
/gpg
/DigestContext \
78 xmlsecurity
/source
/gpg
/SecurityEnvironment \
79 xmlsecurity
/source
/gpg
/SEInitializer \
80 xmlsecurity
/source
/gpg
/XMLEncryption \
81 xmlsecurity
/source
/gpg
/XMLSecurityContext \
82 xmlsecurity
/source
/gpg
/xmlsignature_gpgimpl \
88 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
89 -DXMLSEC_CRYPTO_MSCRYPTO \
92 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
93 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/win32
/binaries
/libxmlsec-mscng.lib \
94 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/win32
/binaries
/libxmlsec.lib \
97 $(eval
$(call gb_Library_use_system_win32_libs
,xsec_xmlsec
,\
103 $(eval
$(call gb_Library_add_exception_objects
,xsec_xmlsec
,\
104 xmlsecurity
/source
/xmlsec
/mscrypt
/akmngr \
105 xmlsecurity
/source
/xmlsec
/mscrypt
/sanextension_mscryptimpl \
106 xmlsecurity
/source
/xmlsec
/mscrypt
/securityenvironment_mscryptimpl \
107 xmlsecurity
/source
/xmlsec
/mscrypt
/seinitializer_mscryptimpl \
108 xmlsecurity
/source
/xmlsec
/mscrypt
/x509certificate_mscryptimpl \
109 xmlsecurity
/source
/xmlsec
/mscrypt
/xmlsecuritycontext_mscryptimpl \
110 xmlsecurity
/source
/xmlsec
/mscrypt
/xmlsignature_mscryptimpl \
115 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
116 -DXMLSEC_CRYPTO_NSS \
119 ifeq ($(SYSTEM_XMLSEC
),)
120 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
121 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/src
/nss
/.libs
/libxmlsec1-nss.a \
122 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/src
/.libs
/libxmlsec1.a \
126 $(eval
$(call gb_Library_use_externals
,xsec_xmlsec
,\
130 $(eval
$(call gb_Library_add_exception_objects
,xsec_xmlsec
,\
131 xmlsecurity
/source
/xmlsec
/nss
/sanextension_nssimpl \
132 xmlsecurity
/source
/xmlsec
/nss
/secerror \
133 xmlsecurity
/source
/xmlsec
/nss
/securityenvironment_nssimpl \
134 xmlsecurity
/source
/xmlsec
/nss
/seinitializer_nssimpl \
135 xmlsecurity
/source
/xmlsec
/nss
/x509certificate_nssimpl \
136 xmlsecurity
/source
/xmlsec
/nss
/xmlsecuritycontext_nssimpl \
137 xmlsecurity
/source
/xmlsec
/nss
/xmlsignature_nssimpl \
142 # nss3 after static libs to appease --as-needed linkers
143 $(eval
$(call gb_Library_use_externals
,xsec_xmlsec
,\
148 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
153 # vim: set noet sw=4 ts=4: