Bump version to 6.4.7.2.M8
[LibreOffice.git] / external / libgpg-error / ExternalProject_libgpg-error.mk
blobe5155aad94c11384adc0bee9b76a0670464f8381
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,libgpg-error))
12 $(eval $(call gb_ExternalProject_register_targets,libgpg-error,\
13 build \
16 $(eval $(call gb_ExternalProject_use_autoconf,libgpg-error,build))
18 ifeq ($(COM),MSC)
19 gb_ExternalProject_libgpg-error_host := $(if $(filter INTEL,$(CPUNAME)),i686-mingw32,x86_64-w64-mingw32)
20 gb_ExternalProject_libgpg-error_target := $(if $(filter INTEL,$(CPUNAME)),pe-i386,pe-x86-64)
21 $(call gb_ExternalProject_get_state_target,libgpg-error,build): $(call gb_Executable_get_target,cpp)
22 $(call gb_ExternalProject_run,build,\
23 MAKE=$(MAKE) ./configure \
24 --enable-static \
25 --disable-shared \
26 --disable-rpath \
27 --disable-languages \
28 --disable-doc \
29 --disable-tests \
30 --host=$(gb_ExternalProject_libgpg-error_host) \
31 RC='windres -O COFF --target=$(gb_ExternalProject_libgpg-error_target) --preprocessor=$(call gb_Executable_get_target,cpp) --preprocessor-arg=-+ -DRC_INVOKED -DWINAPI_FAMILY=0 $(SOLARINC)' \
32 && $(MAKE) \
34 else
35 $(call gb_ExternalProject_get_state_target,libgpg-error,build):
36 $(call gb_ExternalProject_run,build,\
37 MAKE=$(MAKE) ./configure \
38 --disable-rpath \
39 --disable-languages \
40 --disable-doc \
41 CPPFLAGS=" $(SOLARINC)" \
42 $(if $(filter MSC,$(COM)),--force_use_syscfg=true) \
43 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
44 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
45 $(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
46 && $(MAKE) \
49 endif
50 # vim: set noet sw=4 ts=4: