Remove duplicated include
[LibreOffice.git] / external / lxml / ExternalProject_lxml.mk
bloba282546b1a118179d6275a82900b60188f0f789a
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,lxml))
12 $(eval $(call gb_ExternalProject_use_external_project,lxml,python3))
13 $(eval $(call gb_ExternalProject_use_external_project,lxml,libxml2))
14 $(eval $(call gb_ExternalProject_use_external_project,lxml,libxslt))
15 $(eval $(call gb_ExternalProject_use_external_project,lxml,zlib))
17 $(eval $(call gb_ExternalProject_register_targets,lxml,\
18 build \
21 lxml_PYTHON := $(call gb_ExternalExecutable_get_command,python)
23 $(call gb_ExternalProject_get_state_target,lxml,build): \
24 $(call gb_ExternalExecutable_get_dependencies,python)
25 $(call gb_Trace_StartRange,lxml,EXTERNAL)
26 $(call gb_ExternalProject_run,build,\
27 export PYTHONPATH=$${PYTHONPATH:+$$PYTHONPATH:}$(call gb_UnpackedTarball_get_dir,lxml)/install && \
28 $(if $(PYTHON_FOR_BUILD), \
29 unset MACOSX_DEPLOYMENT_TARGET && , \
30 CFLAGS="$$CFLAGS -I$(call gb_UnpackedTarball_get_dir,python3)" && \
31 CFLAGS="$$CFLAGS -I$(call gb_UnpackedTarball_get_dir,python3)/Include" && \
32 LDFLAGS="$$LDFLAGS -L$(call gb_UnpackedTarball_get_dir,python3)" && \
33 _PYTHON_PROJECT_BASE=$(call gb_UnpackedTarball_get_dir,python3) && \
34 export CFLAGS LDFLAGS _PYTHON_PROJECT_BASE && ) \
35 $(lxml_PYTHON) setup.py build \
36 $(if $(SYSTEM_LIBXML),,--with-xml2-config=$(call gb_UnpackedTarball_get_dir,libxml2)/xml2-config) \
37 $(if $(SYSTEM_LIBXSLT),,--with-xslt-config=$(call gb_UnpackedTarball_get_dir,libxslt)/xslt-config) && \
38 rm -fr install && \
39 mkdir install && \
40 $(lxml_PYTHON) setup.py install \
41 --install-lib install \
43 $(call gb_Trace_EndRange,lxml,EXTERNAL)
45 # vim: set noet sw=4 ts=4: