add & install pkgconfig file

This commit is contained in:
David Lamparter 2016-03-19 00:26:58 +01:00
parent 00eaeeb936
commit 3f9141616b
4 changed files with 19 additions and 0 deletions

2
.gitignore vendored
View file

@ -2,6 +2,7 @@ aclocal.m4
autom4te*.cache autom4te*.cache
configure configure
config.h* config.h*
confdefs.h
config.status config.status
libtool libtool
stamp-h* stamp-h*
@ -23,5 +24,6 @@ test-driver
capn-test capn-test
capnpc-c capnpc-c
c-capnproto.pc
*.tar.gz *.tar.gz

View file

@ -11,6 +11,10 @@ include_HEADERS =
EXTRA_DIST += README.md EXTRA_DIST += README.md
EXTRA_DIST += c-capnproto.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = c-capnproto.pc
AM_CPPFLAGS = -I${srcdir}/lib AM_CPPFLAGS = -I${srcdir}/lib
lib_LTLIBRARIES += libcapnp_c.la lib_LTLIBRARIES += libcapnp_c.la

12
c-capnproto.pc.in Normal file
View file

@ -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}

View file

@ -39,5 +39,6 @@ AC_CONFIG_SUBDIRS([gtest/googletest])
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
c-capnproto.pc
]) ])
AC_OUTPUT AC_OUTPUT