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
,\
16 $(eval
$(call gb_ExternalProject_use_autoconf
,libgpg-error
,build
))
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 \
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)' \
35 $(call gb_ExternalProject_get_state_target
,libgpg-error
,build
):
36 $(call gb_ExternalProject_run
,build
,\
37 MAKE
=$(MAKE
) .
/configure \
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
) \
50 # vim: set noet sw=4 ts=4: