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 \
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
,\
51 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
55 $(eval
$(call gb_Library_use_static_libraries
,xsec_xmlsec
,\
61 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
72 $(eval
$(call gb_Library_use_packages
,xsec_xmlsec
,\
75 $(eval
$(call gb_Library_use_externals
,xsec_xmlsec
,\
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
,\
107 $(eval
$(call gb_Library_use_system_win32_libs
,xsec_xmlsec
,\
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 \
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
,\
134 $(eval
$(call gb_Library_use_static_libraries
,xsec_xmlsec
,\
139 $(eval
$(call gb_Library_use_externals
,xsec_xmlsec
,\
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)
157 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
162 # vim: set noet sw=4 ts=4: