fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / libxslt / ExternalProject_xslt.mk
blob9b4632e5772edb3dc21a49544a4583c926357d3d
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,xslt))
12 $(eval $(call gb_ExternalProject_use_external,xslt,libxml2))
14 $(eval $(call gb_ExternalProject_register_targets,xslt,\
15 build \
17 ifeq ($(OS),WNT)
18 ifeq ($(COM),GCC)
19 $(call gb_ExternalProject_get_state_target,xslt,build):
20 $(call gb_ExternalProject_run,build,\
21 ./configure --without-crypto --without-python --disable-static \
22 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
23 CC="$(CC) -mthreads $(if $(MINGW_SHARED_GCCLIB),-shared-libgcc)" \
24 $(if $(MINGW_SHARED_GXXLIB),LIBS="$(MINGW_SHARED_LIBSTDCPP)") \
25 LDFLAGS="-Wl$(COMMA)--no-undefined -Wl$(COMMA)--enable-runtime-pseudo-reloc-v2" \
26 OBJDUMP=objdump \
27 && chmod 777 xslt-config \
28 && $(MAKE) \
30 else # COM=MSC
31 $(call gb_ExternalProject_get_state_target,xslt,build):
32 $(call gb_ExternalProject_run,build,\
33 cscript configure.js \
34 $(if $(MSVC_USE_DEBUG_RUNTIME),cruntime=/MDd) \
35 vcmanifest=yes \
36 lib=$(call gb_UnpackedTarball_get_dir,xml2)/win32/bin.msvc \
37 && unset MAKEFLAGS \
38 && LIB="$(ILIB)" nmake \
39 ,win32)
40 endif
41 else # OS!=WNT
42 $(call gb_ExternalProject_get_state_target,xslt,build):
43 $(call gb_ExternalProject_run,build,\
44 ./configure --without-crypto --without-python \
45 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
46 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
47 LDFLAGS="$(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN" -Wl$(COMMA)-noinhibit-exec) \
48 $(if $(SYSBASE),$(if $(filter SOLARIS LINUX,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
49 $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include") \
50 $(if $(filter TRUE,$(DISABLE_DYNLOADING)), \
51 $(if $(filter IOS,$(OS)),LIBS="-liconv") \
52 --disable-shared,--disable-static) \
53 $(if $(SYSTEM_LIBXML),,--with-libxml-src=$(call gb_UnpackedTarball_get_dir,xml2)) \
54 && chmod 777 xslt-config \
55 && $(MAKE) \
57 endif
59 # vim: set noet sw=4 ts=4: