2013-02-05 16:19:11 -06:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
#
|
|
|
|
# This file is part of the LibreOffice project.
|
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
#
|
|
|
|
|
|
|
|
$(eval $(call gb_ExternalProject_ExternalProject,xml2))
|
|
|
|
|
|
|
|
$(eval $(call gb_ExternalProject_use_unpacked,xml2,xml2))
|
|
|
|
|
|
|
|
$(eval $(call gb_ExternalProject_register_targets,xml2,\
|
|
|
|
build \
|
|
|
|
))
|
2013-02-13 05:57:02 -06:00
|
|
|
|
2013-02-05 16:19:11 -06:00
|
|
|
ifeq ($(OS),WNT)
|
|
|
|
ifeq ($(COM),GCC)
|
|
|
|
$(call gb_ExternalProject_get_state_target,xml2,build):
|
2013-02-21 08:15:39 -06:00
|
|
|
$(call gb_ExternalProject_run,build,\
|
|
|
|
./configure --disable-ipv6 --without-python --without-zlib \
|
|
|
|
--disable-static --without-debug lt_cv_cc_dll_switch="-shared" \
|
|
|
|
$(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
|
|
|
|
CC="$(CC) -mthreads $(if $(filter YES,$(MINGW_SHARED_GCCLIB)),-shared-libgcc)" \
|
|
|
|
LIBS="-lws2_32 $(if $(filter YES,$(MINGW_SHARED_GXXLIB)),$(MINGW_SHARED_LIBSTDCPP))" \
|
2013-02-23 16:04:37 -06:00
|
|
|
LDFLAGS="-Wl$(COMMA)--no-undefined -Wl$(COMMA)--enable-runtime-pseudo-reloc-v2" \
|
2013-02-21 08:15:39 -06:00
|
|
|
OBJDUMP=objdump \
|
|
|
|
&& $(MAKE) \
|
|
|
|
)
|
2013-02-05 16:19:11 -06:00
|
|
|
else # COM=MSC
|
|
|
|
$(call gb_ExternalProject_get_state_target,xml2,build):
|
2013-02-21 08:15:39 -06:00
|
|
|
$(call gb_ExternalProject_run,build,\
|
|
|
|
cscript configure.js iconv=no sax1=yes \
|
|
|
|
&& unset MAKEFLAGS \
|
|
|
|
&& LIB="$(ILIB)" nmake \
|
|
|
|
,win32)
|
2013-02-05 16:19:11 -06:00
|
|
|
endif
|
|
|
|
else # OS!=WNT
|
|
|
|
$(call gb_ExternalProject_get_state_target,xml2,build):
|
2013-02-21 08:15:39 -06:00
|
|
|
$(call gb_ExternalProject_run,build,\
|
|
|
|
./configure --disable-ipv6 --without-python --without-zlib --with-sax1 \
|
|
|
|
$(if $(debug),--with-run-debug) \
|
|
|
|
$(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
|
|
|
|
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
|
|
|
|
LDFLAGS="$(if $(SYSBASE),-L$(SYSBASE)/usr/lib)" \
|
|
|
|
CFLAGS="$(if $(SYSBASE),-I$(SYSBASE)/usr/include) $(if $(debug),-g)" \
|
|
|
|
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
|
|
|
|
&& $(MAKE) \
|
|
|
|
)
|
2013-02-05 16:19:11 -06:00
|
|
|
endif
|
2013-02-13 05:57:02 -06:00
|
|
|
|
2013-02-05 16:19:11 -06:00
|
|
|
# vim: set noet sw=4 ts=4:
|