tdf#161541 sd: fix the orientation of handouts on the printed page
[LibreOffice.git] / external / gpgmepp / ExternalProject_gpgmepp.mk
blobd2733bf21b49f2d29ca892ed42b957e604c1cea4
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 && $(WSL) autoreconf \
29 && $(gb_RUN_CONFIGURE) ./configure \
30 $(gb_CONFIGURE_PLATFORMS) \
31 --disable-shared \
32 --disable-languages \
33 --disable-gpgconf-test \
34 --disable-gpg-test \
35 --disable-gpgsm-test \
36 --disable-g13-test \
37 $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
38 CFLAGS='$(CFLAGS) \
39 $(call gb_ExternalProject_get_build_flags,gpgmepp)' \
40 $(gb_WIN_GPG_platform_switches) \
41 MAKE=$(MAKE) \
42 && $(MAKE) \
44 $(call gb_Trace_EndRange,gpgmepp,EXTERNAL)
45 else
46 $(call gb_ExternalProject_get_state_target,gpgmepp,build):
47 $(call gb_Trace_StartRange,gpgmepp,EXTERNAL)
48 $(call gb_ExternalProject_run,build,\
49 autoreconf \
50 && $(gb_RUN_CONFIGURE) ./configure \
51 --disable-gpgconf-test \
52 --disable-gpg-test \
53 --disable-gpgsm-test \
54 --disable-g13-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)" \
60 CFLAGS='$(CFLAGS) \
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) \
71 && $(MAKE) \
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 \
76 ) \
78 $(call gb_Trace_EndRange,gpgmepp,EXTERNAL)
79 endif
81 # vim: set noet sw=4 ts=4: