fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / firebird / ExternalProject_firebird.mk
blobed802c3de85aeeed444199ebe8818699201bdaf8
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,firebird))
12 $(eval $(call gb_ExternalProject_use_autoconf,firebird,build))
14 $(eval $(call gb_ExternalProject_use_externals,firebird,\
15 boost_headers \
16 icu \
17 libatomic_ops \
20 $(eval $(call gb_ExternalProject_register_targets,firebird,\
21 build \
24 # note: this can intentionally only build against internal atomic_op
25 # note: this can intentionally only build against internal tommath
27 # do not set LDFLAGS - it is mysteriously not used by firebird on MacOSX
28 $(call gb_ExternalProject_get_state_target,firebird,build):
29 $(call gb_ExternalProject_run,build,\
30 unset MAKEFLAGS \
31 && export PKG_CONFIG="" \
32 && export CPPFLAGS=" \
33 $(if $(SYSTEM_LIBATOMIC_OPS),$(LIBATOMIC_OPS_CFLAGS), \
34 -I$(call gb_UnpackedTarball_get_dir,libatomic_ops)/src \
35 ) \
36 " \
37 && export CXXFLAGS=" \
38 $(if $(SYSTEM_BOOST),$(BOOST_CPPFLAGS), \
39 -I$(call gb_UnpackedTarball_get_dir,boost) \
40 -L$(call gb_UnpackedTarball_get_dir,boost)/source/lib \
41 ) \
42 $(if $(SYSTEM_ICU),$(ICU_CPPFLAGS), \
43 -I$(call gb_UnpackedTarball_get_dir,icu)/source \
44 -I$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
45 -I$(call gb_UnpackedTarball_get_dir,icu)/source/common \
46 -L$(call gb_UnpackedTarball_get_dir,icu)/source/lib \
47 ) \
48 " \
49 && MAKE=$(MAKE) ./configure \
50 --without-editline \
51 --disable-superserver \
52 --with-system-icu --without-fbsample --without-fbsample-db \
53 $(if $(ENABLE_DEBUG),--enable-debug) \
54 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
55 $(if $(filter IOS ANDROID,$(OS)),--disable-shared,--disable-static) \
56 && $(if $(filter WNT,$(OS)),\
57 PATH="$(shell cygpath -u $(call gb_UnpackedTarball_get_dir,icu)/source/lib):$$PATH",\
58 $(gb_Helper_set_ld_path)) \
59 $(MAKE) firebird_embedded \
60 $(if $(filter MACOSX,$(OS)),&& $(PERL) \
61 $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
62 $(gb_Package_SOURCEDIR_firebird)/gen/firebird/lib/libfbembed.dylib.2.5.2) \
64 # vim: set noet sw=4 ts=4: