From 3f9141616b9636811280aca3f93cf1a9ebcee346 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sat, 19 Mar 2016 00:26:58 +0100 Subject: [PATCH] add & install pkgconfig file --- .gitignore | 2 ++ Makefile.am | 4 ++++ c-capnproto.pc.in | 12 ++++++++++++ configure.ac | 1 + 4 files changed, 19 insertions(+) create mode 100644 c-capnproto.pc.in diff --git a/.gitignore b/.gitignore index aaed00d..04ffc2b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ aclocal.m4 autom4te*.cache configure config.h* +confdefs.h config.status libtool stamp-h* @@ -23,5 +24,6 @@ test-driver capn-test capnpc-c +c-capnproto.pc *.tar.gz diff --git a/Makefile.am b/Makefile.am index 3518129..2690646 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,6 +11,10 @@ include_HEADERS = EXTRA_DIST += README.md +EXTRA_DIST += c-capnproto.pc.in +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = c-capnproto.pc + AM_CPPFLAGS = -I${srcdir}/lib lib_LTLIBRARIES += libcapnp_c.la diff --git a/c-capnproto.pc.in b/c-capnproto.pc.in new file mode 100644 index 0000000..45bd6c7 --- /dev/null +++ b/c-capnproto.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +bindir=@bindir@ +includedir=@includedir@ +codegen=${bindir}/capnpc-c + +Name: c-capnproto +Description: Cap'n Proto C bindings +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -lcapnp_c +Cflags: -I${includedir} diff --git a/configure.ac b/configure.ac index b389360..60ac622 100755 --- a/configure.ac +++ b/configure.ac @@ -39,5 +39,6 @@ AC_CONFIG_SUBDIRS([gtest/googletest]) AC_CONFIG_FILES([ Makefile + c-capnproto.pc ]) AC_OUTPUT