GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / xmlsecurity / Library_xsec_xmlsec.mk
blob890ffc9dd66c29e24bd2947f13d9317c14099470
1 # -*- Mode: makefile; 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 ifeq ($(OS),WNT)
13 $(eval $(call gb_Library_set_componentfile,xsec_xmlsec,xmlsecurity/util/xsec_xmlsec.windows))
14 else
15 $(eval $(call gb_Library_set_componentfile,xsec_xmlsec,xmlsecurity/util/xsec_xmlsec))
16 endif
18 $(eval $(call gb_Library_set_include,xsec_xmlsec,\
19 $$(INCLUDE) \
20 -I$(SRCDIR)/xmlsecurity/inc \
21 -I$(SRCDIR)/xmlsecurity/source/xmlsec \
22 -I$(call gb_UnpackedTarball_get_dir,xmlsec/include) \
25 $(eval $(call gb_Library_use_custom_headers,xsec_xmlsec,\
26 officecfg/registry \
29 $(eval $(call gb_Library_use_sdk_api,xsec_xmlsec))
31 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
32 -DXMLSEC_NO_XSLT \
35 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
36 comphelper \
37 cppu \
38 cppuhelper \
39 sal \
40 svl \
41 tl \
42 xo \
43 $(gb_UWINAPI) \
46 $(eval $(call gb_Library_use_packages,xsec_xmlsec,\
47 xmlsec \
49 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
50 boost_headers \
51 libxml2 \
52 nss3 \
55 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
56 xmlsecurity/source/xmlsec/biginteger \
57 xmlsecurity/source/xmlsec/certificateextension_xmlsecimpl \
58 xmlsecurity/source/xmlsec/certvalidity \
59 xmlsecurity/source/xmlsec/diagnose \
60 xmlsecurity/source/xmlsec/errorcallback \
61 xmlsecurity/source/xmlsec/saxhelper \
62 xmlsecurity/source/xmlsec/serialnumberadapter \
63 xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl \
64 xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl \
65 xmlsecurity/source/xmlsec/xmlstreamio \
66 xmlsecurity/source/xmlsec/xsec_xmlsec \
67 xmlsecurity/source/xmlsec/nss/ciphercontext \
68 xmlsecurity/source/xmlsec/nss/digestcontext \
69 xmlsecurity/source/xmlsec/nss/nssinitializer \
70 xmlsecurity/source/xmlsec/nss/xsec_nss \
73 ifeq ($(OS)-$(COM),WNT-MSC)
75 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
76 -DXMLSEC_CRYPTO_MSCRYPTO \
80 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
81 $(call gb_UnpackedTarball_get_dir,xmlsec)/win32/binaries/libxmlsec-mscrypto.lib \
82 $(call gb_UnpackedTarball_get_dir,xmlsec)/win32/binaries/libxmlsec.lib \
85 $(eval $(call gb_Library_use_system_win32_libs,xsec_xmlsec,\
86 crypt32 \
87 advapi32 \
90 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
91 xmlsecurity/source/xmlsec/mscrypt/sanextension_mscryptimpl \
92 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl \
93 xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl \
94 xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl \
95 xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl \
96 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl \
97 xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl \
98 xmlsecurity/source/xmlsec/mscrypt/xsec_mscrypt \
101 else
103 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
104 -DXMLSEC_CRYPTO_NSS \
107 ifeq ($(OS)-$(COM),WNT-GCC)
108 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
109 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/nss/.libs/libxmlsec1-nss.dll.a \
110 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/.libs/libxmlsec1.dll.a \
112 else ifeq ($(OS),ANDROID)
113 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
114 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/openssl/.libs/libxmlsec1-openssl.a \
115 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/.libs/libxmlsec1.a \
117 else
118 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
119 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/nss/.libs/libxmlsec1-nss.a \
120 $(call gb_UnpackedTarball_get_dir,xmlsec)/src/.libs/libxmlsec1.a \
122 endif
124 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
125 plc4 \
128 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
129 xmlsecurity/source/xmlsec/nss/sanextension_nssimpl \
130 xmlsecurity/source/xmlsec/nss/secerror \
131 xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl \
132 xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl \
133 xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl \
134 xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl \
135 xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl \
136 xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl \
139 endif # ifeq ($(OS)-$(COM),WNT-GCC)
141 ifeq ($(OS),SOLARIS)
142 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
143 -ldl \
145 endif
147 # vim: set noet sw=4 ts=4: