From f3e60521899e6126229b6efedc9f011b84122e11 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 12 Nov 2018 09:03:49 +0900 Subject: build: Provide gpgme.pc, generated by configure. * configure.ac: Generate src/gpgme.pc. * src/Makefile.am (pkgconfigdir, pkgconfig_DATA): New. (EXTRA_DIST): Add gpgme.pc.in. * src/gpgme.pc.in: New. * src/gpgme-config.in: Use variables. -- Some usages of gpgme-config is not compatible to pkg-config style; The --glib option and --thread option which affect the output by --cflags or --libs are not supported by gpgme.pc. gpgme-config's embedding information for gpg-error and libassuan at the build time of gpgme is considered inflexible than pkg-config style. It is now handled by dependency of gpgme.pc (Requires field). To use gpgme.pc, newer libgpg-error (>= 1.33) and libassuan (>= 2.5.3) are required, which provide gpg-error.pc and libassuan.pc respectively. Signed-off-by: NIIBE Yutaka --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 688a4b38..faa5261e 100644 --- a/configure.ac +++ b/configure.ac @@ -855,6 +855,7 @@ AC_CONFIG_FILES(Makefile src/Makefile tests/opassuan/Makefile doc/Makefile src/versioninfo.rc + src/gpgme.pc src/gpgme.h) AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config) AC_CONFIG_FILES(lang/cpp/Makefile lang/cpp/src/Makefile) -- cgit v1.2.3