Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / external / libxml2 / ExternalProject_xml2.mk
blob0e775f6c74c1a78e174ddb919696464767f0f220
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_get_state_target,xml2,build):
32 $(call gb_ExternalProject_run,build,\
33 cscript configure.js \
34 iconv=no sax1=yes $(if $(MSVC_USE_DEBUG_RUNTIME),cruntime=/MDd) \
35 && unset MAKEFLAGS \
36 && LIB="$(ILIB)" nmake \
37 ,win32)
38 endif
39 else # OS!=WNT
40 $(call gb_ExternalProject_get_state_target,xml2,build):
41 $(call gb_ExternalProject_run,build,\
42 ./configure --disable-ipv6 --without-python --without-zlib --with-sax1 \
43 --without-lzma \
44 $(if $(debug),--with-run-debug) \
45 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
46 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________URELIB) \
47 LDFLAGS="$(if $(SYSBASE),-L$(SYSBASE)/usr/lib)" \
48 CFLAGS="$(if $(SYSBASE),-I$(SYSBASE)/usr/include) $(if $(debug),-g)" \
49 $(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
50 && $(MAKE) \
52 endif
54 # vim: set noet sw=4 ts=4: