Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / external / libxml2 / ExternalProject_libxml2.mk
blob2fe0e6005724b7ad990caaff22c5fdb26d8f8d52
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,libxml2))
12 $(eval $(call gb_ExternalProject_register_targets,libxml2,\
13 build \
16 ifeq ($(OS),EMSCRIPTEN)
17 $(call gb_ExternalProject_use_external_project,libxml2,icu)
18 endif
20 ifeq ($(OS),WNT)
21 $(call gb_ExternalProject_use_external_project,libxml2,icu)
23 $(eval $(call gb_ExternalProject_use_nmake,libxml2,build))
25 $(call gb_ExternalProject_get_state_target,libxml2,build):
26 $(call gb_Trace_StartRange,libxml2,EXTERNAL)
27 $(call gb_ExternalProject_run,build,\
28 cscript /e:javascript configure.js \
29 iconv=no icu=yes sax1=yes $(if $(MSVC_USE_DEBUG_RUNTIME),cruntime=/MDd) \
30 $(if $(filter TRUE,$(ENABLE_DBGUTIL)),debug=yes) \
31 && nmake \
32 ,win32)
33 $(call gb_Trace_EndRange,libxml2,EXTERNAL)
34 else # OS!=WNT
35 $(call gb_ExternalProject_get_state_target,libxml2,build):
36 $(call gb_Trace_StartRange,libxml2,EXTERNAL)
37 $(call gb_ExternalProject_run,build,\
38 $(gb_RUN_CONFIGURE) ./configure --disable-ipv6 --without-python --without-zlib --with-sax1 \
39 --without-lzma \
40 $(if $(debug),--with-run-debug) \
41 $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
42 $(gb_CONFIGURE_PLATFORMS) \
43 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________URELIB) \
44 LDFLAGS="$(call gb_ExternalProject_get_link_flags,libxml2) $(if $(SYSBASE),-L$(SYSBASE)/usr/lib)" \
45 CFLAGS="$(CFLAGS) \
46 $(if $(SYSBASE),-I$(SYSBASE)/usr/include) \
47 $(call gb_ExternalProject_get_build_flags,libxml2)" \
48 $(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
49 && $(MAKE) libxml2.la xmllint \
51 $(call gb_Trace_EndRange,libxml2,EXTERNAL)
52 endif
54 # vim: set noet sw=4 ts=4: