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
$(SYSTEM_NSS
),,--disable-pkgconfig
) \
31 CC
="$(CC) -mthreads $(if $(MINGW_SHARED_GCCLIB),-shared-libgcc)" \
32 LDFLAGS
="-Wl$(COMMA)--no-undefined $(ILIB:;= -L)" \
33 LIBS
="$(if $(MINGW_SHARED_GXXLIB),$(MINGW_SHARED__LIBSTDCPP))" \
34 lt_cv_deplibs_check_method
=pass_all \
39 $(call gb_ExternalProject_get_state_target
,xmlsec
,build
) :
40 $(call gb_ExternalProject_run
,build
,\
41 cscript configure.js crypto
=mscrypto xslt
=no iconv
=no static
=no \
42 lib
=$(call gb_UnpackedTarball_get_dir
,xml2
)/win32
/bin.msvc \
43 $(if
$(filter TRUE
,$(ENABLE_DBGUTIL
)),debug
=yes
) \
45 && LIB
="$(ILIB)" nmake \
51 $(call gb_ExternalProject_get_state_target
,xmlsec
,build
) :
52 $(call gb_ExternalProject_run
,build
,\
53 $(if
$(filter IOS MACOSX
,$(OS
)),ACLOCAL
="aclocal -I $(SRCDIR)/m4/mac") \
54 $(if
$(filter AIX
,$(OS
)),ACLOCAL
="aclocal -I /opt/freeware/share/aclocal") \
57 --with-pic
--disable-shared
--disable-crypto-dl
--without-libxslt
--without-gnutls \
58 $(if
$(or
$(filter-out ANDROID
,$(OS
)),$(DISABLE_OPENSSL
)),--without-openssl
,--with-openssl
=$(call gb_UnpackedTarball_get_dir
,openssl
)) \
59 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
60 $(if
$(SYSTEM_NSS
),,$(if
$(filter MACOSX
,$(OS
)),--disable-pkgconfig
)) \
61 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
62 $(if
$(SYSBASE
),CFLAGS
="-I$(SYSBASE)/usr/include" \
63 LDFLAGS
="-L$(SYSBASE)/usr/lib $(if $(filter-out LINUX FREEBSD,$(OS)),,-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\
$$\
$$ORIGIN)) \
69 # vim: set noet sw=4 ts=4: