bump product version to 4.1.6.2
[LibreOffice.git] / libxml2 / ExternalProject_xml2.mk
blobd518a7f9e3273db70bd382e01ba5075c61527dff
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 --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" \
26 OBJDUMP=objdump \
27 && $(MAKE) \
29 else # COM=MSC
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) \
34 && unset MAKEFLAGS \
35 && LIB="$(ILIB)" nmake \
36 ,win32)
37 endif
38 else # OS!=WNT
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) \
48 && $(MAKE) \
50 endif
52 # vim: set noet sw=4 ts=4: