Bump version to 5.0-14
[LibreOffice.git] / external / libxml2 / ExternalProject_xml2.mk
blobf19cb529add7659393fe8b97922f0bb9b3b34986
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 ifeq ($(COM),GCC)
18 $(call gb_ExternalProject_get_state_target,xml2,build):
19 $(call gb_ExternalProject_run,build,\
20 ./configure --disable-ipv6 --without-python --without-zlib \
21 --without-lzma \
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" \
27 OBJDUMP=objdump \
28 && $(MAKE) \
30 else # COM=MSC
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) \
37 && unset MAKEFLAGS \
38 && LIB="$(ILIB)" nmake \
39 ,win32)
40 endif
41 else # OS!=WNT
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 \
45 --without-lzma \
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) \
52 && $(MAKE) \
54 endif
56 # vim: set noet sw=4 ts=4: