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 $(call gb_ExternalProject_get_state_target
,libgpg-error
,build
): $(call gb_Executable_get_target_for_build
,cpp)
20 $(call gb_Trace_StartRange
,libgpg-error
,EXTERNAL
)
21 $(call gb_ExternalProject_run
,build
,\
22 $(gb_WIN_GPG_cross_setup_exports
) \
23 && MAKE
=$(MAKE
) $(gb_RUN_CONFIGURE
) .
/configure \
30 $(gb_WIN_GPG_platform_switches
) \
33 $(call gb_Trace_EndRange
,libgpg-error
,EXTERNAL
)
35 $(call gb_ExternalProject_get_state_target
,libgpg-error
,build
):
36 $(call gb_Trace_StartRange
,libgpg-error
,EXTERNAL
)
37 $(call gb_ExternalProject_run
,build
,\
38 MAKE
=$(MAKE
) $(gb_RUN_CONFIGURE
) .
/configure \
42 CFLAGS
="$(CFLAGS) $(call gb_ExternalProject_get_build_flags,libgpg-error)" \
43 CPPFLAGS
="$(SOLARINC)" \
44 $(gb_CONFIGURE_PLATFORMS
) \
45 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
46 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
49 $(call gb_Trace_EndRange
,libgpg-error
,EXTERNAL
)
52 # vim: set noet sw=4 ts=4: