bump product version to 4.1.6.2
[LibreOffice.git] / xmlsecurity / Library_xsec_xmlsec.mk
blobe8fb908e91620185b9158a2f0bff8454a11db1fb
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 ifeq ($(OS),WNT)
36 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
37 xmlsec1 \
39 else
40 $(eval $(call gb_Library_use_static_libraries,xsec_xmlsec,\
41 xmlsec1 \
43 endif
46 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
47 comphelper \
48 cppu \
49 cppuhelper \
50 sal \
51 svl \
52 tl \
53 xo \
54 $(gb_UWINAPI) \
57 $(eval $(call gb_Library_use_packages,xsec_xmlsec,\
58 xmlsec \
60 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
61 boost_headers \
62 libxml2 \
63 nss3 \
66 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
67 xmlsecurity/source/xmlsec/biginteger \
68 xmlsecurity/source/xmlsec/certificateextension_xmlsecimpl \
69 xmlsecurity/source/xmlsec/certvalidity \
70 xmlsecurity/source/xmlsec/diagnose \
71 xmlsecurity/source/xmlsec/errorcallback \
72 xmlsecurity/source/xmlsec/saxhelper \
73 xmlsecurity/source/xmlsec/serialnumberadapter \
74 xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl \
75 xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl \
76 xmlsecurity/source/xmlsec/xmlstreamio \
77 xmlsecurity/source/xmlsec/xsec_xmlsec \
78 xmlsecurity/source/xmlsec/nss/ciphercontext \
79 xmlsecurity/source/xmlsec/nss/digestcontext \
80 xmlsecurity/source/xmlsec/nss/nssinitializer \
81 xmlsecurity/source/xmlsec/nss/xsec_nss \
84 ifeq ($(OS)$(CROSS_COMPILING),WNT)
86 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
87 -DXMLSEC_CRYPTO_MSCRYPTO \
90 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
91 xmlsec1-mscrypto \
94 $(eval $(call gb_Library_use_system_win32_libs,xsec_xmlsec,\
95 crypt32 \
96 advapi32 \
99 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
100 xmlsecurity/source/xmlsec/mscrypt/sanextension_mscryptimpl \
101 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl \
102 xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl \
103 xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl \
104 xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl \
105 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl \
106 xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl \
107 xmlsecurity/source/xmlsec/mscrypt/xsec_mscrypt \
110 else
112 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
113 -DXMLSEC_CRYPTO_NSS \
116 ifeq ($(OS)$(CROSS_COMPILING),WNTYES)
117 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
118 xmlsec1-nss \
120 else
121 $(eval $(call gb_Library_use_static_libraries,xsec_xmlsec,\
122 xmlsec1-nss \
124 endif
126 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
127 plc4 \
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/xmlencryption_nssimpl \
137 xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl \
138 xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl \
141 endif # ifeq ($(OS)$(CROSS_COMPILING),WNT)
143 ifeq ($(OS),SOLARIS)
144 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
145 -ldl \
147 endif
149 # vim: set noet sw=4 ts=4: