Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / xmlsecurity / Library_xsec_xmlsec.mk
blob68cdf0a094de95a8db2c7d451d791818010030d3
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 \
41 -I$(call gb_UnpackedTarball_get_dir,xmlsec/include) \
44 $(eval $(call gb_Library_use_sdk_api,xsec_xmlsec))
46 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
47 -DXMLSEC_NO_XSLT \
50 ifeq ($(OS),WNT)
51 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
52 xmlsec1 \
54 else
55 $(eval $(call gb_Library_use_static_libraries,xsec_xmlsec,\
56 xmlsec1 \
58 endif
61 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
62 comphelper \
63 cppu \
64 cppuhelper \
65 sal \
66 svl \
67 tl \
68 xo \
69 $(gb_UWINAPI) \
72 $(eval $(call gb_Library_use_packages,xsec_xmlsec,\
73 xmlsec \
75 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
76 libxml2 \
77 nss3 \
80 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
81 xmlsecurity/source/xmlsec/biginteger \
82 xmlsecurity/source/xmlsec/certificateextension_xmlsecimpl \
83 xmlsecurity/source/xmlsec/certvalidity \
84 xmlsecurity/source/xmlsec/diagnose \
85 xmlsecurity/source/xmlsec/errorcallback \
86 xmlsecurity/source/xmlsec/saxhelper \
87 xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl \
88 xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl \
89 xmlsecurity/source/xmlsec/xmlstreamio \
90 xmlsecurity/source/xmlsec/xsec_xmlsec \
91 xmlsecurity/source/xmlsec/nss/ciphercontext \
92 xmlsecurity/source/xmlsec/nss/digestcontext \
93 xmlsecurity/source/xmlsec/nss/nssinitializer \
94 xmlsecurity/source/xmlsec/nss/xsec_nss \
97 ifeq ($(GUI)$(CROSS_COMPILING),WNT)
99 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
100 -DXMLSEC_CRYPTO_MSCRYPTO \
103 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
104 xmlsec1-mscrypto \
107 $(eval $(call gb_Library_use_system_win32_libs,xsec_xmlsec,\
108 crypt32 \
109 advapi32 \
112 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
113 xmlsecurity/source/xmlsec/mscrypt/sanextension_mscryptimpl \
114 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl \
115 xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl \
116 xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl \
117 xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl \
118 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl \
119 xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl \
120 xmlsecurity/source/xmlsec/mscrypt/xsec_mscrypt \
123 else
125 $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
126 -DXMLSEC_CRYPTO_NSS \
129 ifeq ($(GUI)$(CROSS_COMPILING),WNTYES)
130 $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
131 xmlsec1-nss \
133 else
134 $(eval $(call gb_Library_use_static_libraries,xsec_xmlsec,\
135 xmlsec1-nss \
137 endif
139 $(eval $(call gb_Library_use_externals,xsec_xmlsec,\
140 plc4 \
143 $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
144 xmlsecurity/source/xmlsec/nss/sanextension_nssimpl \
145 xmlsecurity/source/xmlsec/nss/secerror \
146 xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl \
147 xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl \
148 xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl \
149 xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl \
150 xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl \
151 xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl \
154 endif # ifeq ($(GUI)$(CROSS_COMPILING),WNT)
156 ifeq ($(OS),SOLARIS)
157 $(eval $(call gb_Library_add_libs,xsec_xmlsec,\
158 -ldl \
160 endif
162 # vim: set noet sw=4 ts=4: