Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / external / redland / ExternalProject_raptor.mk
blobb3ae74c10b610ad113a1d004ffc0b9e5d3bdb3c0
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,raptor))
12 $(eval $(call gb_ExternalProject_use_external,raptor,libxml2))
14 $(eval $(call gb_ExternalProject_register_targets,raptor,\
15 build \
18 $(call gb_ExternalProject_get_state_target,raptor,build):
19 $(call gb_Trace_StartRange,raptor,EXTERNAL)
20 $(call gb_ExternalProject_run,build,\
21 $(if $(filter iOS,$(OS)),LIBS="-liconv") \
22 CFLAGS="$(CFLAGS) \
23 $(call gb_ExternalProject_get_build_flags,raptor) \
24 $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) \
25 $(if $(filter GCCLINUXPOWERPC64,$(COM)$(OS)$(CPUNAME)),-mminimal-toc)" \
26 LDFLAGS=" \
27 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN") \
28 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
29 CPPFLAGS="$(if $(SYSBASE),-I$(SYSBASE)/usr/include) $(gb_EMSCRIPTEN_CPPFLAGS)" \
30 $(gb_RUN_CONFIGURE) ./configure --disable-gtk-doc \
31 --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" \
32 --with-www=xml \
33 --without-xslt-config \
34 $(gb_CONFIGURE_PLATFORMS) \
35 $(if $(CROSS_COMPILING),$(if $(filter INTEL ARM,$(CPUNAME)),ac_cv_c_bigendian=no)) \
36 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
37 $(if $(DISABLE_DYNLOADING), \
38 --enable-static --disable-shared \
39 , \
40 --enable-shared --disable-static \
41 ) \
42 $(if $(SYSTEM_LIBXML),$(if $(filter-out MACOSX,$(OS)),--without-xml2-config),--with-xml2-config=$(call gb_UnpackedTarball_get_dir,libxml2)/xml2-config) \
43 && $(MAKE) \
45 $(call gb_Trace_EndRange,raptor,EXTERNAL)
47 # vim: set noet sw=4 ts=4: