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
,gpgmepp
))
12 $(eval
$(call gb_ExternalProject_register_targets
,gpgmepp
,\
16 $(eval
$(call gb_ExternalProject_use_autoconf
,gpgmepp
,build
))
18 $(eval
$(call gb_ExternalProject_use_externals
,gpgmepp
,\
24 $(call gb_ExternalProject_get_state_target
,gpgmepp
,build
): $(call gb_Executable_get_target_for_build
,cpp)
25 $(call gb_Trace_StartRange
,gpgmepp
,EXTERNAL
)
26 $(call gb_ExternalProject_run
,build
, \
27 $(gb_WIN_GPG_cross_setup_exports
) \
28 && $(WSL
) autoreconf \
29 && $(gb_RUN_CONFIGURE
) .
/configure \
30 $(gb_CONFIGURE_PLATFORMS
) \
33 --disable-gpgconf-test \
35 --disable-gpgsm-test \
37 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
39 $(call gb_ExternalProject_get_build_flags,gpgmepp)' \
40 $(gb_WIN_GPG_platform_switches
) \
44 $(call gb_Trace_EndRange
,gpgmepp
,EXTERNAL
)
46 $(call gb_ExternalProject_get_state_target
,gpgmepp
,build
):
47 $(call gb_Trace_StartRange
,gpgmepp
,EXTERNAL
)
48 $(call gb_ExternalProject_run
,build
,\
50 && $(gb_RUN_CONFIGURE
) .
/configure \
51 --disable-gpgconf-test \
53 --disable-gpgsm-test \
55 --enable-languages
="cpp" \
56 GPG_ERROR_CFLAGS
="$(GPG_ERROR_CFLAGS)" \
57 GPG_ERROR_LIBS
="$(GPG_ERROR_LIBS)" \
58 LIBASSUAN_CFLAGS
="$(LIBASSUAN_CFLAGS)" \
59 LIBASSUAN_LIBS
="$(LIBASSUAN_LIBS)" \
61 $(call gb_ExternalProject_get_build_flags,gpgmepp)' \
62 CXXFLAGS
='$(CXXFLAGS) \
63 $(call gb_ExternalProject_get_build_flags,gpgmepp) \
64 $(gb_COMPILERDEFS_STDLIB_DEBUG)' \
65 $(if
$(filter LINUX
,$(OS
)), \
66 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
67 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
68 $(gb_CONFIGURE_PLATFORMS
) \
69 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
70 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
72 $(if
$(filter MACOSX
,$(OS
)),\
73 && $(PERL
) $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
74 $(EXTERNAL_WORKDIR
)/lang
/cpp/src
/.libs
/libgpgmepp
.6.dylib \
75 $(EXTERNAL_WORKDIR
)/src
/.libs
/libgpgme
.11.dylib \
78 $(call gb_Trace_EndRange
,gpgmepp
,EXTERNAL
)
81 # vim: set noet sw=4 ts=4: