lok: vcl: fix multiple floatwin removal case more robustly.
[LibreOffice.git] / xmlsecurity / Library_xsec_xmlsec.mk
blob1ddbb712b957694f2050c93b4e70b04ff2e975c7
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 \
31 -DXSECGPG_DLLIMPLEMENTATION \
34 $(eval $(call gb_Library_set_precompiled_header,xsec_xmlsec,$(SRCDIR)/xmlsecurity/inc/pch/precompiled_xsec_xmlsec))
36 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
37 comphelper \
38 cppu \
39 cppuhelper \
40 sal \
41 svl \
42 tl \
43 xo \
44 utl \
47 ifeq ($(SYSTEM_XMLSEC),)
48 $(eval $(call gb_Library_use_packages,xsec_xmlsec,\
49 xmlsec \
51 endif
53 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
54 boost_headers \
55 gpgmepp \
56 libxml2 \
57 xmlsec \
60 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
61 xmlsecurity/source/xmlsec/biginteger \
62 xmlsecurity/source/xmlsec/certificateextension_certextn \
63 xmlsecurity/source/xmlsec/errorcallback \
64 xmlsecurity/source/xmlsec/saxhelper \
65 xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl \
66 xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl \
67 xmlsecurity/source/xmlsec/xmlsec_init \
68 xmlsecurity/source/xmlsec/xmlstreamio \
69 xmlsecurity/source/xmlsec/nss/ciphercontext \
70 xmlsecurity/source/xmlsec/nss/digestcontext \
71 xmlsecurity/source/xmlsec/nss/nssinitializer \
74 ifeq ($(ENABLE_GPGMEPP),TRUE)
75 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
76 xmlsecurity/source/gpg/CertificateImpl \
77 xmlsecurity/source/gpg/CipherContext \
78 xmlsecurity/source/gpg/DigestContext \
79 xmlsecurity/source/gpg/SecurityEnvironment \
80 xmlsecurity/source/gpg/SEInitializer \
81 xmlsecurity/source/gpg/XMLEncryption \
82 xmlsecurity/source/gpg/XMLSecurityContext \
83 xmlsecurity/source/gpg/xmlsignature_gpgimpl \
85 endif
87 ifeq ($(OS),WNT)
89 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
90 -DXMLSEC_CRYPTO_MSCRYPTO \
93 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
94 $(call gb_UnpackedTarball_get_dir,xmlsec)/win32/binaries/libxmlsec-mscng.lib \
95 $(call gb_UnpackedTarball_get_dir,xmlsec)/win32/binaries/libxmlsec.lib \
98 $(eval $(call gb_Library_use_system_win32_libs,xsec_xmlsec,\
99 crypt32 \
100 advapi32 \
101 ncrypt \
104 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
105 xmlsecurity/source/xmlsec/mscrypt/akmngr \
106 xmlsecurity/source/xmlsec/mscrypt/sanextension_mscryptimpl \
107 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl \
108 xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl \
109 xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl \
110 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl \
111 xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl \
114 else
116 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
117 -DXMLSEC_CRYPTO_NSS \
120 ifeq ($(SYSTEM_XMLSEC),)
121 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
122 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/nss/.libs/libxmlsec1-nss.a \
123 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/.libs/libxmlsec1.a \
125 endif
127 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
128 plc4 \
131 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
132 xmlsecurity/source/xmlsec/nss/sanextension_nssimpl \
133 xmlsecurity/source/xmlsec/nss/secerror \
134 xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl \
135 xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl \
136 xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl \
137 xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl \
138 xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl \
141 endif
143 # nss3 after static libs to appease --as-needed linkers
144 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
145 nss3 \
148 ifeq ($(OS),SOLARIS)
149 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
150 -ldl \
152 endif
154 # vim: set noet sw=4 ts=4: