tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / external / redland / ExternalProject_redland.mk
blobfe6306a7f874e5185d5505204e9fc4175e84c728
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,redland))
12 $(eval $(call gb_ExternalProject_use_packages,redland, \
13 raptor \
14 rasqal \
17 $(eval $(call gb_ExternalProject_register_targets,redland,\
18 build \
21 # note: this can intentionally only build against internal raptor/rasqal
23 $(call gb_ExternalProject_get_state_target,redland,build):
24 $(call gb_Trace_StartRange,redland,EXTERNAL)
25 $(call gb_ExternalProject_run,build,\
26 $(if $(filter -fsanitize=undefined,$(CC)),CC='$(CC) -fno-sanitize=function') \
27 CFLAGS="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) $(call gb_ExternalProject_get_build_flags,redland) $(gb_EMSCRIPTEN_CPPFLAGS)" \
28 LDFLAGS='$(strip \
29 $(if $(filter LINUX FREEBSD,$(OS)),$(strip -Wl,-z,origin -Wl,-rpath,\$$$$ORIGIN -Wl,-rpath-link,$(INSTROOT)/$(LIBO_URE_LIB_FOLDER))) \
30 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl)))' \
31 CPPFLAGS="$(if $(SYSBASE),-I$(SYSBASE)/usr/include)" \
32 PKG_CONFIG="" \
33 RAPTOR2_CFLAGS="-I$(gb_UnpackedTarball_workdir)/raptor/src" \
34 RAPTOR2_LIBS="-L$(gb_UnpackedTarball_workdir)/raptor/src/.libs -lraptor2 $(LIBXML_LIBS)" \
35 RASQAL_CFLAGS="-I$(gb_UnpackedTarball_workdir)/rasqal/src" \
36 RASQAL_LIBS="-L$(gb_UnpackedTarball_workdir)/rasqal/src/.libs -lrasqal" \
37 $(gb_RUN_CONFIGURE) ./configure --disable-gtk-doc \
38 --disable-modular \
39 --without-threads \
40 --without-bdb --without-sqlite --without-mysql \
41 --without-postgresql --without-threestone --without-virtuoso \
42 $(gb_CONFIGURE_PLATFORMS) \
43 $(if $(CROSS_COMPILING),$(if $(filter INTEL ARM,$(CPUNAME)),ac_cv_c_bigendian=no)) \
44 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
45 $(if $(ENABLE_DEBUG),--enable-debug) \
46 $(if $(DISABLE_DYNLOADING), \
47 --enable-static --disable-shared \
48 , \
49 --enable-shared --disable-static \
50 ) \
51 && $(MAKE) \
52 $(if $(filter MACOSX,$(OS)),&& $(PERL) \
53 $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
54 $(EXTERNAL_WORKDIR)/src/.libs/librdf-lo.$(REDLAND_MAJOR).dylib) \
56 $(call gb_Trace_EndRange,redland,EXTERNAL)
58 # vim: set noet sw=4 ts=4: