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 \
22 --disable-static
--without-debug lt_cv_cc_dll_switch
="-shared" \
23 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
24 CC
="$(CC) -mthreads $(if $(MINGW_SHARED_GCCLIB),-shared-libgcc)" \
25 LIBS
="-lws2_32 $(if $(MINGW_SHARED_GXXLIB),$(MINGW_SHARED_LIBSTDCPP))" \
26 LDFLAGS
="-Wl$(COMMA)--no-undefined -Wl$(COMMA)--enable-runtime-pseudo-reloc-v2" \
31 $(call gb_ExternalProject_use_external_project
,xml2
,icu
)
33 $(call gb_ExternalProject_get_state_target
,xml2
,build
):
34 $(call gb_ExternalProject_run
,build
,\
35 cscript configure.js \
36 iconv
=no icu
=yes sax1
=yes
$(if
$(MSVC_USE_DEBUG_RUNTIME
),run_debug
=yes cruntime
=/MDd
) \
38 && LIB
="$(ILIB)" nmake \
42 $(call gb_ExternalProject_get_state_target
,xml2
,build
):
43 $(call gb_ExternalProject_run
,build
,\
44 .
/configure
--disable-ipv6
--without-python
--without-zlib
--with-sax1 \
46 $(if
$(debug
),--with-run-debug
) \
47 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
48 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________URELIB
) \
49 LDFLAGS
="$(if $(SYSBASE),-L$(SYSBASE)/usr/lib)" \
50 CFLAGS
="$(if $(SYSBASE),-I$(SYSBASE)/usr/include) $(if $(debug),-g)" \
51 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
56 # vim: set noet sw=4 ts=4: