aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-05-27 16:03:48 +0000
committerIngo Klöcker <[email protected]>2024-08-29 11:51:38 +0000
commit569348ee84068ade5e05902dd9d670a1a30c7ca1 (patch)
tree0a66990368633880fdd55d019c79edccf2657ce9 /lang/cpp/src
parentcpp: Go with default answer on unknown question by key edit interface (diff)
downloadgpgme-569348ee84068ade5e05902dd9d670a1a30c7ca1.tar.gz
gpgme-569348ee84068ade5e05902dd9d670a1a30c7ca1.zip
cpp: Add pkgconfig file for gpgmepp
* configure.ac: Add substitutions GPGMEPP_PKGCONFIG_LIBS, GPGMEPP_PKGCONFIG_CFLAGS, GPGMEPP_PKGCONFIG_HOST. Apply them. Configure gpgmepp.pc file. * lang/cpp/src/Makefile.am (pkgconfigdir, pkgconfig_DATA): New. (EXTRA_DIST): Add gpgmepp.pc.in. * lang/cpp/src/gpgmepp.pc.in: New. -- This pkgconfig file will be used, at least temporarily, by qgpgme to find gpgmepp, but it's also useful in general for projects that don't use cmake. GnuPG-bug-id: 7262
Diffstat (limited to 'lang/cpp/src')
-rw-r--r--lang/cpp/src/Makefile.am6
-rw-r--r--lang/cpp/src/gpgmepp.pc.in13
2 files changed, 18 insertions, 1 deletions
diff --git a/lang/cpp/src/Makefile.am b/lang/cpp/src/Makefile.am
index fd30ce21..db363226 100644
--- a/lang/cpp/src/Makefile.am
+++ b/lang/cpp/src/Makefile.am
@@ -19,8 +19,12 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gpgmepp.pc
+
EXTRA_DIST = GpgmeppConfig.cmake.in.in GpgmeppConfigVersion.cmake.in \
- gpgmepp_version.h.in GpgmeppConfig-w32.cmake.in.in
+ gpgmepp_version.h.in GpgmeppConfig-w32.cmake.in.in \
+ gpgmepp.pc.in
lib_LTLIBRARIES = libgpgmepp.la
diff --git a/lang/cpp/src/gpgmepp.pc.in b/lang/cpp/src/gpgmepp.pc.in
new file mode 100644
index 00000000..37c15357
--- /dev/null
+++ b/lang/cpp/src/gpgmepp.pc.in
@@ -0,0 +1,13 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+libdir=@libdir@
+host=@GPGMEPP_PKGCONFIG_HOST@
+
+Name: gpgmepp
+Description: GnuPG Made Easy (C++ binding)
+Requires.private: gpg-error, gpgme
+Version: @PACKAGE_VERSION@
+Cflags: @GPGMEPP_PKGCONFIG_CFLAGS@
+Libs: @GPGMEPP_PKGCONFIG_LIBS@
+URL: https://www.gnupg.org/software/gpgme/index.html