Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / external / libxml2 / ExternalProject_xml2.mk
blobf60d960d6790e1ad5423e11d2300a241d4df90e4
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,\
13 build \
16 ifeq ($(OS),WNT)
17 $(call gb_ExternalProject_use_external_project,xml2,icu)
19 $(call gb_ExternalProject_get_state_target,xml2,build):
20 $(call gb_ExternalProject_run,build,\
21 cscript /e:javascript configure.js \
22 iconv=no icu=yes sax1=yes $(if $(MSVC_USE_DEBUG_RUNTIME),run_debug=yes cruntime=/MDd) \
23 $(if $(filter TRUE,$(ENABLE_DBGUTIL)),debug=yes) \
24 && unset MAKEFLAGS \
25 && LIB="$(ILIB)" nmake \
26 ,win32)
27 else # OS!=WNT
28 $(call gb_ExternalProject_get_state_target,xml2,build):
29 $(call gb_ExternalProject_run,build,\
30 ./configure --disable-ipv6 --without-python --without-zlib --with-sax1 \
31 --without-lzma \
32 $(if $(debug),--with-run-debug) \
33 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
34 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________URELIB) \
35 LDFLAGS="$(if $(SYSBASE),-L$(SYSBASE)/usr/lib)" \
36 CFLAGS="$(if $(SYSBASE),-I$(SYSBASE)/usr/include) $(if $(debug),-g)" \
37 $(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
38 && $(MAKE) \
40 endif
42 # vim: set noet sw=4 ts=4: