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
,xml2
))
12 $(eval
$(call gb_ExternalProject_register_targets
,xml2
,\
18 $(call gb_ExternalProject_get_state_target
,xml2
,build
):
19 $(call gb_ExternalProject_run
,build
,\
20 .
/configure
--disable-ipv6
--without-python
--without-zlib \
21 --disable-static
--without-debug lt_cv_cc_dll_switch
="-shared" \
22 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
23 CC
="$(CC) -mthreads $(if $(filter YES,$(MINGW_SHARED_GCCLIB)),-shared-libgcc)" \
24 LIBS
="-lws2_32 $(if $(filter YES,$(MINGW_SHARED_GXXLIB)),$(MINGW_SHARED_LIBSTDCPP))" \
25 LDFLAGS
="-Wl$(COMMA)--no-undefined -Wl$(COMMA)--enable-runtime-pseudo-reloc-v2" \
30 $(call gb_ExternalProject_get_state_target
,xml2
,build
):
31 $(call gb_ExternalProject_run
,build
,\
32 cscript configure.js \
33 iconv
=no sax1
=yes
$(if
$(MSVC_USE_DEBUG_RUNTIME
),cruntime
=/MDd
) \
35 && LIB
="$(ILIB)" nmake \
39 $(call gb_ExternalProject_get_state_target
,xml2
,build
):
40 $(call gb_ExternalProject_run
,build
,\
41 .
/configure
--disable-ipv6
--without-python
--without-zlib
--with-sax1 \
42 $(if
$(debug
),--with-run-debug
) \
43 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
44 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
45 LDFLAGS
="$(if $(SYSBASE),-L$(SYSBASE)/usr/lib)" \
46 CFLAGS
="$(if $(SYSBASE),-I$(SYSBASE)/usr/include) $(if $(debug),-g)" \
47 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
52 # vim: set noet sw=4 ts=4: