summaryrefslogtreecommitdiffstats
path: root/external/gpgmepp/Library_gpgmepp.mk
blob: a7d0ba349c9bbad568e8e033e2ed79b82074fefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

$(eval $(call gb_Library_Library,gpgmepp))

$(eval $(call gb_Library_use_unpacked,gpgmepp,gpgmepp))

$(eval $(call gb_Library_use_externals,gpgmepp,\
	libgpg-error \
	libassuan \
))

$(eval $(call gb_LinkTarget_use_external_project,\
	$(call gb_Library_get_linktarget,gpgmepp),gpgmepp,full))

$(eval $(call gb_Library_set_warnings_disabled,gpgmepp))

$(eval $(call gb_Library_set_include,gpgmepp,\
    -I$(call gb_UnpackedTarball_get_dir,gpgmepp)/lang/cpp/src \
    -I$(call gb_UnpackedTarball_get_dir,gpgmepp)/lang/cpp/src/interfaces \
    -I$(call gb_UnpackedTarball_get_dir,gpgmepp) \
    -I$(call gb_UnpackedTarball_get_dir,gpgmepp)/src \
    -I$(call gb_UnpackedTarball_get_dir,libgpg-error)/src \
    $$(INCLUDE) \
))

$(eval $(call gb_Library_add_libs,gpgmepp,\
       ws2_32.lib shell32.lib \
       -LIBPATH:$(call gb_UnpackedTarball_get_dir,gpgmepp)/src/.libs libgpgme.lib \
))

$(eval $(call gb_Library_add_defs,gpgmepp,\
	-DHAVE_CONFIG_H \
	-DBUILDING_GPGMEPP \
	-DDLL_EXPORT \
	-DPIC \
))

$(eval $(call gb_Library_set_generated_cxx_suffix,gpgmepp,cpp))

$(eval $(call gb_Library_add_generated_exception_objects,gpgmepp,\
	UnpackedTarball/gpgmepp/lang/cpp/src/callbacks \
	UnpackedTarball/gpgmepp/lang/cpp/src/configuration \
	UnpackedTarball/gpgmepp/lang/cpp/src/context \
	UnpackedTarball/gpgmepp/lang/cpp/src/context_vanilla \
	UnpackedTarball/gpgmepp/lang/cpp/src/data \
	UnpackedTarball/gpgmepp/lang/cpp/src/decryptionresult \
	UnpackedTarball/gpgmepp/lang/cpp/src/defaultassuantransaction \
	UnpackedTarball/gpgmepp/lang/cpp/src/editinteractor \
	UnpackedTarball/gpgmepp/lang/cpp/src/encryptionresult \
	UnpackedTarball/gpgmepp/lang/cpp/src/engineinfo \
	UnpackedTarball/gpgmepp/lang/cpp/src/eventloopinteractor \
	UnpackedTarball/gpgmepp/lang/cpp/src/exception \
	UnpackedTarball/gpgmepp/lang/cpp/src/gpgadduserideditinteractor \
	UnpackedTarball/gpgmepp/lang/cpp/src/gpgagentgetinfoassuantransaction \
	UnpackedTarball/gpgmepp/lang/cpp/src/gpggencardkeyinteractor \
	UnpackedTarball/gpgmepp/lang/cpp/src/gpgsetexpirytimeeditinteractor \
	UnpackedTarball/gpgmepp/lang/cpp/src/gpgsetownertrusteditinteractor \
	UnpackedTarball/gpgmepp/lang/cpp/src/gpgsignkeyeditinteractor \
	UnpackedTarball/gpgmepp/lang/cpp/src/importresult \
	UnpackedTarball/gpgmepp/lang/cpp/src/key \
	UnpackedTarball/gpgmepp/lang/cpp/src/keygenerationresult \
	UnpackedTarball/gpgmepp/lang/cpp/src/keylistresult \
	UnpackedTarball/gpgmepp/lang/cpp/src/scdgetinfoassuantransaction \
	UnpackedTarball/gpgmepp/lang/cpp/src/signingresult \
	UnpackedTarball/gpgmepp/lang/cpp/src/swdbresult \
	UnpackedTarball/gpgmepp/lang/cpp/src/tofuinfo \
	UnpackedTarball/gpgmepp/lang/cpp/src/trustitem \
	UnpackedTarball/gpgmepp/lang/cpp/src/verificationresult \
	UnpackedTarball/gpgmepp/lang/cpp/src/vfsmountresult \
))

ifeq ($(COM),MSC)
ifeq ($(COM_IS_CLANG),TRUE)
$(eval $(call gb_Library_add_cxxflags,gpgmepp, \
    -Wno-c++11-narrowing \
))
endif
endif

# vim: set noet sw=4 ts=4: