1 # -*- Mode: makefile-gmake; 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
))
13 $(eval
$(call gb_Library_set_componentfile
,xsec_xmlsec
,xmlsecurity
/util
/xsec_xmlsec.windows
))
15 $(eval
$(call gb_Library_set_componentfile
,xsec_xmlsec
,xmlsecurity
/util
/xsec_xmlsec
))
18 $(eval
$(call gb_Library_set_include
,xsec_xmlsec
,\
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
,\
29 $(eval
$(call gb_Library_use_sdk_api
,xsec_xmlsec
))
31 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
35 $(eval
$(call gb_Library_set_precompiled_header
,xsec_xmlsec
,$(SRCDIR
)/xmlsecurity
/inc
/pch
/precompiled_xsec_xmlsec
))
37 $(eval
$(call gb_Library_use_libraries
,xsec_xmlsec
,\
48 $(eval
$(call gb_Library_use_packages
,xsec_xmlsec
,\
51 $(eval
$(call gb_Library_use_externals
,xsec_xmlsec
,\
57 $(eval
$(call gb_Library_add_exception_objects
,xsec_xmlsec
,\
58 xmlsecurity
/source
/xmlsec
/biginteger \
59 xmlsecurity
/source
/xmlsec
/certificateextension_xmlsecimpl \
60 xmlsecurity
/source
/xmlsec
/certvalidity \
61 xmlsecurity
/source
/xmlsec
/errorcallback \
62 xmlsecurity
/source
/xmlsec
/saxhelper \
63 xmlsecurity
/source
/xmlsec
/serialnumberadapter \
64 xmlsecurity
/source
/xmlsec
/xmldocumentwrapper_xmlsecimpl \
65 xmlsecurity
/source
/xmlsec
/xmlelementwrapper_xmlsecimpl \
66 xmlsecurity
/source
/xmlsec
/xmlstreamio \
67 xmlsecurity
/source
/xmlsec
/xsec_xmlsec \
68 xmlsecurity
/source
/xmlsec
/nss
/ciphercontext \
69 xmlsecurity
/source
/xmlsec
/nss
/digestcontext \
70 xmlsecurity
/source
/xmlsec
/nss
/nssinitializer \
71 xmlsecurity
/source
/xmlsec
/nss
/xsec_nss \
74 ifeq ($(OS
)-$(COM
),WNT-MSC
)
76 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
77 -DXMLSEC_CRYPTO_MSCRYPTO \
81 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
82 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/win32
/binaries
/libxmlsec-mscrypto.lib \
83 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/win32
/binaries
/libxmlsec.lib \
86 $(eval
$(call gb_Library_use_system_win32_libs
,xsec_xmlsec
,\
91 $(eval
$(call gb_Library_add_exception_objects
,xsec_xmlsec
,\
92 xmlsecurity
/source
/xmlsec
/mscrypt
/sanextension_mscryptimpl \
93 xmlsecurity
/source
/xmlsec
/mscrypt
/securityenvironment_mscryptimpl \
94 xmlsecurity
/source
/xmlsec
/mscrypt
/seinitializer_mscryptimpl \
95 xmlsecurity
/source
/xmlsec
/mscrypt
/x509certificate_mscryptimpl \
96 xmlsecurity
/source
/xmlsec
/mscrypt
/xmlencryption_mscryptimpl \
97 xmlsecurity
/source
/xmlsec
/mscrypt
/xmlsecuritycontext_mscryptimpl \
98 xmlsecurity
/source
/xmlsec
/mscrypt
/xmlsignature_mscryptimpl \
99 xmlsecurity
/source
/xmlsec
/mscrypt
/xsec_mscrypt \
104 $(eval
$(call gb_Library_add_defs
,xsec_xmlsec
,\
105 -DXMLSEC_CRYPTO_NSS \
108 ifeq ($(OS
)-$(COM
),WNT-GCC
)
109 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
110 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/src
/nss
/.libs
/libxmlsec1-nss.dll.a \
111 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/src
/.libs
/libxmlsec1.dll.a \
113 else ifeq ($(OS
),ANDROID
)
114 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
115 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/src
/openssl
/.libs
/libxmlsec1-openssl.a \
116 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/src
/.libs
/libxmlsec1.a \
119 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
120 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/src
/nss
/.libs
/libxmlsec1-nss.a \
121 $(call gb_UnpackedTarball_get_dir
,xmlsec
)/src
/.libs
/libxmlsec1.a \
125 $(eval
$(call gb_Library_use_externals
,xsec_xmlsec
,\
129 $(eval
$(call gb_Library_add_exception_objects
,xsec_xmlsec
,\
130 xmlsecurity
/source
/xmlsec
/nss
/sanextension_nssimpl \
131 xmlsecurity
/source
/xmlsec
/nss
/secerror \
132 xmlsecurity
/source
/xmlsec
/nss
/securityenvironment_nssimpl \
133 xmlsecurity
/source
/xmlsec
/nss
/seinitializer_nssimpl \
134 xmlsecurity
/source
/xmlsec
/nss
/x509certificate_nssimpl \
135 xmlsecurity
/source
/xmlsec
/nss
/xmlencryption_nssimpl \
136 xmlsecurity
/source
/xmlsec
/nss
/xmlsecuritycontext_nssimpl \
137 xmlsecurity
/source
/xmlsec
/nss
/xmlsignature_nssimpl \
140 endif # ifeq ($(OS)-$(COM),WNT-GCC)
143 $(eval
$(call gb_Library_add_libs
,xsec_xmlsec
,\
148 # vim: set noet sw=4 ts=4: