Add 'reference' to the iterator_traits, needed by LegacyIterator reqs
[LibreOffice.git] / xmlsecurity / Library_xsec_xmlsec.mk
blob450e19b3267bd580fb78a803505c9a060f4f3ab6
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,\
15 $$(INCLUDE) \
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,\
23 officecfg/registry \
26 $(eval $(call gb_Library_use_sdk_api,xsec_xmlsec))
28 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
29 -DXMLSEC_NO_XSLT \
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,\
36 comphelper \
37 cppu \
38 cppuhelper \
39 sal \
40 svl \
41 tl \
42 xo \
43 utl \
46 ifeq ($(SYSTEM_XMLSEC),)
47 $(eval $(call gb_Library_use_packages,xsec_xmlsec,\
48 xmlsec \
50 endif
52 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
53 boost_headers \
54 $(if $(ENABLE_GPGMEPP),gpgmepp) \
55 libxml2 \
56 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 \
70 ifeq ($(ENABLE_GPGMEPP),TRUE)
71 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
72 xmlsecurity/source/gpg/CertificateImpl \
73 xmlsecurity/source/gpg/CipherContext \
74 xmlsecurity/source/gpg/DigestContext \
75 xmlsecurity/source/gpg/SecurityEnvironment \
76 xmlsecurity/source/gpg/SEInitializer \
77 xmlsecurity/source/gpg/XMLEncryption \
78 xmlsecurity/source/gpg/XMLSecurityContext \
79 xmlsecurity/source/gpg/xmlsignature_gpgimpl \
81 endif
83 ifeq ($(OS),WNT)
85 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
86 -DXMLSEC_CRYPTO_MSCRYPTO \
89 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
90 $(call gb_UnpackedTarball_get_dir,xmlsec)/win32/binaries/libxmlsec-mscng.lib \
91 $(call gb_UnpackedTarball_get_dir,xmlsec)/win32/binaries/libxmlsec.lib \
94 $(eval $(call gb_Library_use_system_win32_libs,xsec_xmlsec,\
95 crypt32 \
96 advapi32 \
97 ncrypt \
100 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
101 xmlsecurity/source/xmlsec/mscrypt/akmngr \
102 xmlsecurity/source/xmlsec/mscrypt/sanextension_mscryptimpl \
103 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl \
104 xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl \
105 xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl \
106 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl \
107 xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl \
110 ifeq ($(ENABLE_NSS),TRUE)
112 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
113 xmlsecurity/source/xmlsec/nss/ciphercontext \
114 xmlsecurity/source/xmlsec/nss/digestcontext \
115 xmlsecurity/source/xmlsec/nss/nssinitializer \
118 # nss3 after static libs to appease --as-needed linkers
119 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
120 nss3 \
123 endif
125 else # !$(OS),WNT
127 ifeq ($(SYSTEM_XMLSEC),)
128 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
129 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/nss/.libs/libxmlsec1-nss.a \
130 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/.libs/libxmlsec1.a \
132 endif
134 ifeq ($(ENABLE_NSS),TRUE)
136 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
137 xmlsecurity/source/xmlsec/nss/ciphercontext \
138 xmlsecurity/source/xmlsec/nss/digestcontext \
139 xmlsecurity/source/xmlsec/nss/nssinitializer \
140 xmlsecurity/source/xmlsec/nss/sanextension_nssimpl \
141 xmlsecurity/source/xmlsec/nss/secerror \
142 xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl \
143 xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl \
144 xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl \
145 xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl \
146 xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl \
149 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
150 -DXMLSEC_CRYPTO_NSS \
153 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
154 plc4 \
156 # nss3 after static libs to appease --as-needed linkers
157 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
158 nss3 \
161 else # ! $(ENABLE_NSS)
163 ifeq ($(ENABLE_OPENSSL),TRUE)
164 $(eval $(call gb_Library_use_external,xsec_xmlsec,openssl))
165 endif
167 endif # !$(ENABLE_NSS)
169 ifeq ($(OS),SOLARIS)
170 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
171 -ldl \
173 endif
175 endif # !$(OS),WNT
177 # vim: set noet sw=4 ts=4: