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
) \
32 --disable-gpgconf-test \
34 --disable-gpgsm-test \
36 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
38 $(if $(ENABLE_OPTIMIZED), \
39 $(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
40 $(if $(call gb_Module__symbols_enabled,gpgmepp),$(gb_DEBUGINFO_FLAGS))' \
41 $(gb_WIN_GPG_platform_switches
) \
45 $(call gb_Trace_EndRange
,gpgmepp
,EXTERNAL
)
47 $(call gb_ExternalProject_get_state_target
,gpgmepp
,build
):
48 $(call gb_Trace_StartRange
,gpgmepp
,EXTERNAL
)
49 $(call gb_ExternalProject_run
,build
,\
52 --disable-gpgconf-test \
54 --disable-gpgsm-test \
56 --enable-languages
="cpp" \
57 GPG_ERROR_CFLAGS
="$(GPG_ERROR_CFLAGS)" \
58 GPG_ERROR_LIBS
="$(GPG_ERROR_LIBS)" \
59 LIBASSUAN_CFLAGS
="$(LIBASSUAN_CFLAGS)" \
60 LIBASSUAN_LIBS
="$(LIBASSUAN_LIBS)" \
62 $(if $(ENABLE_OPTIMIZED), \
63 $(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
64 $(if $(call gb_Module__symbols_enabled,gpgmepp),$(gb_DEBUGINFO_FLAGS))' \
65 CXXFLAGS
='$(CXXFLAGS) \
66 $(if $(ENABLE_OPTIMIZED), \
67 $(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
68 $(if $(ENABLE_DBGUTIL),-D_GLIBCXX_DEBUG) \
69 $(if $(call gb_Module__symbols_enabled,gpgmepp),$(gb_DEBUGINFO_FLAGS))' \
70 $(if
$(filter LINUX
,$(OS
)), \
71 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
72 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
73 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
74 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
75 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
77 $(if
$(filter MACOSX
,$(OS
)),\
78 && $(PERL
) $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
79 $(EXTERNAL_WORKDIR
)/lang
/cpp/src
/.libs
/libgpgmepp
.6.dylib \
80 $(EXTERNAL_WORKDIR
)/src
/.libs
/libgpgme
.11.dylib \
83 $(call gb_Trace_EndRange
,gpgmepp
,EXTERNAL
)
86 # vim: set noet sw=4 ts=4: