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
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
))
32 $(eval
$(call gb_Library_set_componentfile
,xsec_xmlsec
,xmlsecurity
/util
/xsec_xmlsec.windows
))
34 $(eval
$(call gb_Library_set_componentfile
,xsec_xmlsec
,xmlsecurity
/util
/xsec_xmlsec
))
37 $(eval
$(call gb_Library_set_include
,xsec_xmlsec
,\
39 -I
$(SRCDIR
)/xmlsecurity
/inc \
40 -I
$(SRCDIR
)/xmlsecurity
/source
/xmlsec \
43 $(eval
$(call gb_Library_use_api
,xsec_xmlsec
,\
48 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
53 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
57 $(eval
$(call gb_Library_use_static_libraries
,xsec_xmlsec
,\
63 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
74 $(eval
$(call gb_Library_use_externals
,xsec_xmlsec
,\
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 \
97 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
98 -DXMLSEC_CRYPTO_MSCRYPTO \
101 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
105 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
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 \
123 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
124 -DXMLSEC_CRYPTO_NSS \
127 $(eval
$(call gb_Library_use_static_libraries
,xsec_xmlsec
,\
131 $(eval
$(call gb_Library_use_externals
,xsec_xmlsec
,\
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
,\
155 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
159 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
165 $(eval
$(call gb_Library_set_include
,xsec_xmlsec
,\
167 -I
$(OUTDIR
)/inc
/mozilla
/nspr \
168 -I
$(OUTDIR
)/inc
/mozilla
/nss \
171 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
176 endif # ifeq ($(SYSTEM_NSS),YES)
179 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
184 # vim: set noet sw=4 ts=4: