Bump for 3.6-28
[LibreOffice.git] / xmlsecurity / Library_xsec_xmlsec.mk
blob915acab22a7d9343fe5eb03898ccd393857d5874
1 # -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Initial Developer of the Original Code is
15 # Matúš Kukan <matus.kukan@gmail.com>
16 # Portions created by the Initial Developer are Copyright (C) 2011 the
17 # Initial Developer. All Rights Reserved.
19 # Major Contributor(s):
21 # For minor contributions see the git repository.
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
25 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
26 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
27 # instead of those above.
29 $(eval $(call gb_Library_Library,xsec_xmlsec))
31 ifeq ($(OS),WNT)
32 $(eval $(call gb_Library_set_componentfile,xsec_xmlsec,xmlsecurity/util/xsec_xmlsec.windows))
33 else
34 $(eval $(call gb_Library_set_componentfile,xsec_xmlsec,xmlsecurity/util/xsec_xmlsec))
35 endif
37 $(eval $(call gb_Library_set_include,xsec_xmlsec,\
38 $$(INCLUDE) \
39 -I$(SRCDIR)/xmlsecurity/inc \
40 -I$(SRCDIR)/xmlsecurity/source/xmlsec \
43 $(eval $(call gb_Library_use_api,xsec_xmlsec,\
44 udkapi \
45 offapi \
48 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
49 -DXMLSEC_NO_XSLT \
52 ifeq ($(OS),WNT)
53 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
54 xmlsec1 \
56 else
57 $(eval $(call gb_Library_use_static_libraries,xsec_xmlsec,\
58 xmlsec1 \
60 endif
63 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
64 comphelper \
65 cppu \
66 cppuhelper \
67 sal \
68 svl \
69 tl \
70 xo \
71 $(gb_STDLIBS) \
74 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
75 libxml2 \
78 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
79 xmlsecurity/source/xmlsec/biginteger \
80 xmlsecurity/source/xmlsec/certificateextension_xmlsecimpl \
81 xmlsecurity/source/xmlsec/certvalidity \
82 xmlsecurity/source/xmlsec/diagnose \
83 xmlsecurity/source/xmlsec/errorcallback \
84 xmlsecurity/source/xmlsec/saxhelper \
85 xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl \
86 xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl \
87 xmlsecurity/source/xmlsec/xmlstreamio \
88 xmlsecurity/source/xmlsec/xsec_xmlsec \
89 xmlsecurity/source/xmlsec/nss/ciphercontext \
90 xmlsecurity/source/xmlsec/nss/digestcontext \
91 xmlsecurity/source/xmlsec/nss/nssinitializer \
92 xmlsecurity/source/xmlsec/nss/xsec_nss \
95 ifeq ($(GUI),WNT)
97 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
98 -DXMLSEC_CRYPTO_MSCRYPTO \
101 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
102 xmlsec1-mscrypto \
105 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
106 crypt32 \
107 advapi32 \
110 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
111 xmlsecurity/source/xmlsec/mscrypt/sanextension_mscryptimpl \
112 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl \
113 xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl \
114 xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl \
115 xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl \
116 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl \
117 xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl \
118 xmlsecurity/source/xmlsec/mscrypt/xsec_mscrypt \
121 else
123 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
124 -DXMLSEC_CRYPTO_NSS \
127 $(eval $(call gb_Library_use_static_libraries,xsec_xmlsec,\
128 xmlsec1-nss \
131 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
132 plc4 \
135 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
136 xmlsecurity/source/xmlsec/nss/sanextension_nssimpl \
137 xmlsecurity/source/xmlsec/nss/secerror \
138 xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl \
139 xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl \
140 xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl \
141 xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl \
142 xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl \
143 xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl \
146 endif # ifeq ($(GUI),WNT)
148 ifeq ($(SYSTEM_NSS),YES)
150 $(eval $(call gb_Library_set_include,xsec_xmlsec,\
151 $$(INCLUDE) \
152 $(NSS_CFLAGS) \
155 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
156 -DSYSTEM_MOZILLA \
159 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
160 $(NSS_LIBS) \
163 else
165 $(eval $(call gb_Library_set_include,xsec_xmlsec,\
166 $$(INCLUDE) \
167 -I$(OUTDIR)/inc/mozilla/nspr \
168 -I$(OUTDIR)/inc/mozilla/nss \
171 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
172 nspr4 \
173 nss3 \
176 endif # ifeq ($(SYSTEM_NSS),YES)
178 ifeq ($(OS),SOLARIS)
179 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
180 dl \
182 endif
184 # vim: set noet sw=4 ts=4: