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
,\
16 ifeq ($(OS
),EMSCRIPTEN
)
17 $(call gb_ExternalProject_use_external_project
,libxml2
,icu
)
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
) \
33 $(call gb_Trace_EndRange
,libxml2
,EXTERNAL
)
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 \
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)" \
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
)
54 # vim: set noet sw=4 ts=4: