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 gb_ExternalProject_gpgmepp_host
:= $(if
$(filter INTEL
,$(CPUNAME
)),i686-mingw32
,x86_64-w64-mingw32
)
25 gb_ExternalProject_gpgmepp_target
:= $(if
$(filter INTEL
,$(CPUNAME
)),pe-i386
,pe-x86-64
)
26 $(call gb_ExternalProject_get_state_target
,gpgmepp
,build
): $(call gb_Executable_get_target
,cpp)
27 $(call gb_ExternalProject_run
,build
,\
32 --disable-gpgconf-test \
34 --disable-gpgsm-test \
38 $(if $(ENABLE_OPTIMIZED), \
39 $(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
40 $(if $(call gb_Module__symbols_enabled,gpgmepp),$(gb_DEBUGINFO_FLAGS))' \
41 --host
=$(gb_ExternalProject_gpgmepp_host
) \
42 RC
='windres -O COFF --target=$(gb_ExternalProject_gpgmepp_target) --preprocessor=$(call gb_Executable_get_target,cpp) --preprocessor-arg=-+ -DRC_INVOKED -DWINAPI_FAMILY=0 $(SOLARINC)' \
47 $(call gb_ExternalProject_get_state_target
,gpgmepp
,build
):
48 $(call gb_ExternalProject_run
,build
,\
52 --enable-languages
="cpp" \
53 GPG_ERROR_CFLAGS
="$(GPG_ERROR_CFLAGS)" \
54 GPG_ERROR_LIBS
="$(GPG_ERROR_LIBS)" \
55 LIBASSUAN_CFLAGS
="$(LIBASSUAN_CFLAGS)" \
56 LIBASSUAN_LIBS
="$(LIBASSUAN_LIBS)" \
58 $(if $(ENABLE_OPTIMIZED), \
59 $(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
60 $(if $(call gb_Module__symbols_enabled,gpgmepp),$(gb_DEBUGINFO_FLAGS))' \
61 CXXFLAGS
='$(CXXFLAGS) \
62 $(if $(ENABLE_OPTIMIZED), \
63 $(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
64 $(if $(ENABLE_DBGUTIL),-D_GLIBCXX_DEBUG) \
65 $(if $(call gb_Module__symbols_enabled,gpgmepp),$(gb_DEBUGINFO_FLAGS))' \
66 $(if
$(filter LINUX
,$(OS
)), \
67 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
68 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
69 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
70 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
71 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
73 $(if
$(filter MACOSX
,$(OS
)),\
74 && $(PERL
) $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
75 $(EXTERNAL_WORKDIR
)/lang
/cpp/src
/.libs
/libgpgmepp
.6.dylib \
76 $(EXTERNAL_WORKDIR
)/src
/.libs
/libgpgme
.11.dylib \
81 # vim: set noet sw=4 ts=4: