update credits
[LibreOffice.git] / external / gpgmepp / ExternalProject_gpgmepp.mk
blob1ba51cfb3bce7316fcd3fdb67452dcccbba2c61e
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,\
13 build \
16 $(eval $(call gb_ExternalProject_use_autoconf,gpgmepp,build))
18 $(eval $(call gb_ExternalProject_use_externals,gpgmepp,\
19 libgpg-error \
20 libassuan \
23 ifeq ($(COM),MSC)
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 && autoreconf \
29 && ./configure \
30 --disable-shared \
31 --disable-languages \
32 --disable-gpgconf-test \
33 --disable-gpg-test \
34 --disable-gpgsm-test \
35 --disable-g13-test \
36 $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
37 CFLAGS='$(CFLAGS) \
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) \
42 MAKE=$(MAKE) \
43 && $(MAKE) \
45 $(call gb_Trace_EndRange,gpgmepp,EXTERNAL)
46 else
47 $(call gb_ExternalProject_get_state_target,gpgmepp,build):
48 $(call gb_Trace_StartRange,gpgmepp,EXTERNAL)
49 $(call gb_ExternalProject_run,build,\
50 autoreconf \
51 && ./configure \
52 --disable-gpgconf-test \
53 --disable-gpg-test \
54 --disable-gpgsm-test \
55 --disable-g13-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)" \
61 CFLAGS='$(CFLAGS) \
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) \
76 && $(MAKE) \
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 \
81 ) \
83 $(call gb_Trace_EndRange,gpgmepp,EXTERNAL)
84 endif
86 # vim: set noet sw=4 ts=4: