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
,\
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
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
23 CC
="$(CC) -mthreads $(if $(filter YES,$(MINGW_SHARED_GCCLIB)),-shared-libgcc)" \
24 $(if
$(filter YES
,$(MINGW_SHARED_GXXLIB
)),LIBS
="$(MINGW_SHARED_LIBSTDCPP)") \
25 LDFLAGS
="-Wl$(COMMA)--no-undefined -Wl$(COMMA)--enable-runtime-pseudo-reloc-v2" \
27 && chmod
777 xslt-config \
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
) \
36 && LIB
="$(ILIB)" nmake \
40 $(call gb_ExternalProject_get_state_target
,xslt
,build
):
41 $(call gb_ExternalProject_run
,build
,\
42 .
/configure
--without-crypto
--without-python \
43 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
44 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
45 LDFLAGS
="$(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\
$$\
$$ORIGIN:'\'\$$\$$ORIGIN/../ure-link/lib" -Wl$(COMMA)-noinhibit-exec) \
46 $(if $(SYSBASE),$(if $(filter SOLARIS LINUX,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
47 $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include") \
48 $(if $(filter TRUE,$(DISABLE_DYNLOADING)), \
49 $(if $(filter IOS,$(OS)),LIBS="-liconv") \
50 --disable-shared,--disable-static) \
51 $(if $(filter NO,$(SYSTEM_LIBXML)),--with-libxml-prefix=$(OUTDIR)) \
52 && chmod 777 xslt-config \
57 # vim: set noet sw=4 ts=4: