aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-05-27 16:03:48 +0000
committerIngo Klöcker <[email protected]>2024-06-10 12:58:53 +0000
commit76b38f54a551bd139e83a38ee64ea31ecaad5f16 (patch)
tree99e1dda7671e6e2cbb2a6db88730d4f77f861a00 /lang/cpp
parentqt: Always include C++ binding headers with gpgme++/ prefix (diff)
downloadgpgme-76b38f54a551bd139e83a38ee64ea31ecaad5f16.tar.gz
gpgme-76b38f54a551bd139e83a38ee64ea31ecaad5f16.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 by qgpgme to find gpgmepp. GnuPG-bug-id: 7110
Diffstat (limited to 'lang/cpp')
-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 a2edb49e..e6d23889 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