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_ExternalProject_ExternalProject
,xmlsec
))
12 $(eval
$(call gb_ExternalProject_use_external
,xmlsec
,libxml2
))
14 $(eval
$(call gb_ExternalProject_use_external
,xmlsec
,nss3
))
16 $(eval
$(call gb_ExternalProject_use_external
,xmlsec
,openssl
))
18 $(eval
$(call gb_ExternalProject_register_targets
,xmlsec
,\
25 $(call gb_ExternalProject_get_state_target
,xmlsec
,build
) :
26 $(call gb_ExternalProject_run
,build
,\
28 && .
/configure
--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
) \
29 --without-libxslt
--without-openssl
--without-gnutls
--disable-crypto-dl \
30 $(if
$(filter NO
,$(SYSTEM_NSS
)),--disable-pkgconfig
) \
31 CC
="$(CC) -mthreads $(if $(filter YES,$(MINGW_SHARED_GCCLIB)),-shared-libgcc)" \
32 LDFLAGS
="-Wl$(COMMA)--no-undefined $(ILIB:;= -L)" \
33 LIBS
="$(if $(filter YES,$(MINGW_SHARED_GXXLIB)),$(MINGW_SHARED__LIBSTDCPP))" \
38 $(call gb_ExternalProject_get_state_target
,xmlsec
,build
) :
39 $(call gb_ExternalProject_run
,build
,\
40 cscript configure.js crypto
=mscrypto xslt
=no iconv
=no static
=no \
41 $(if
$(filter TRUE
,$(ENABLE_DBGUTIL
)),debug
=yes
) \
43 && LIB
="$(ILIB)" nmake \
49 $(call gb_ExternalProject_get_state_target
,xmlsec
,build
) :
50 $(call gb_ExternalProject_run
,build
,\
51 $(if
$(filter MACOSX
,$(OS
)),ACLOCAL
="aclocal -I $(SRCDIR)/m4/mac") \
52 $(if
$(filter AIX
,$(OS
)),ACLOCAL
="aclocal -I /opt/freeware/share/aclocal") \
55 --with-pic
--disable-shared
--disable-crypto-dl
--without-libxslt
--without-gnutls \
56 $(if
$(and
$(filter ANDROID
,$(OS
)),$(filter-out YES
,$(DISABLE_OPENSSL
))),--with-openssl
=$(OUTDIR
),--without-openssl
) \
57 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
58 $(if
$(filter NO
,$(SYSTEM_NSS
))$(filter MACOSX
,$(OS
)),--disable-pkgconfig
) \
59 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
60 $(if
$(filter NO
,$(SYSTEM_LIBXML
)),LIBXML_CFLAGS
="-I$(call gb_UnpackedTarball_get_dir,xml2)/include" LIBXML_LIBS
="-L$(gb_Helper_OUTDIRLIBDIR) -lxml2")\
61 $(if
$(SYSBASE
),CFLAGS
="-I$(SYSBASE)/usr/include" \
62 LDFLAGS
="-L$(SYSBASE)/usr/lib $(if $(filter-out LINUX FREEBSD,$(OS)),,-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\
$$\
$$ORIGIN:'\'\$$\$$ORIGIN/../ure-link/lib)) \
68 # vim: set noet sw=4 ts=4: