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
,libxml2
))
12 $(eval
$(call gb_ExternalProject_register_targets
,libxml2
,\
17 $(call gb_ExternalProject_use_external_project
,libxml2
,icu
)
19 $(eval
$(call gb_ExternalProject_use_nmake
,libxml2
,build
))
21 $(call gb_ExternalProject_get_state_target
,libxml2
,build
):
22 $(call gb_ExternalProject_run
,build
,\
23 cscript
/e
:javascript configure.js \
24 iconv
=no icu
=yes sax1
=yes
$(if
$(MSVC_USE_DEBUG_RUNTIME
),run_debug
=yes cruntime
=/MDd
) \
25 $(if
$(filter TRUE
,$(ENABLE_DBGUTIL
)),debug
=yes
) \
29 $(call gb_ExternalProject_get_state_target
,libxml2
,build
):
30 $(call gb_ExternalProject_run
,build
,\
31 .
/configure
--disable-ipv6
--without-python
--without-zlib
--with-sax1 \
33 $(if
$(debug
),--with-run-debug
) \
34 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
35 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________URELIB
) \
36 LDFLAGS
="$(if $(SYSBASE),-L$(SYSBASE)/usr/lib)" \
37 CFLAGS
="$(if $(SYSBASE),-I$(SYSBASE)/usr/include) $(if $(debug),-g)" \
38 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
43 # vim: set noet sw=4 ts=4: