Bump version to 6.4.7.2.M8
[LibreOffice.git] / external / gpgmepp / ExternalProject_gpgmepp.mk
blobd7835622ca21aba20f3322897d32fd3f5e5f3339
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 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,\
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 --disable-glibtest \
37 CFLAGS='$(CFLAGS) \
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)' \
43 MAKE=$(MAKE) \
44 && $(MAKE) \
46 else
47 $(call gb_ExternalProject_get_state_target,gpgmepp,build):
48 $(call gb_ExternalProject_run,build,\
49 autoreconf \
50 && ./configure \
51 --disable-gpg-test \
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)" \
57 CFLAGS='$(CFLAGS) \
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) \
72 && $(MAKE) \
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 \
77 ) \
79 endif
81 # vim: set noet sw=4 ts=4: