Add pkg-config file

We're installing header file pcuif_proto.h so it's better to use
pkg-config for proper version tracking similar to the way it's done for
OpenBSC.

Change-Id: I0520045e5655794df152b98b9755d7cbbd334049
This commit is contained in:
Max 2017-03-08 11:58:57 +01:00
parent 1275a3f91a
commit 727295f206
5 changed files with 16 additions and 0 deletions

2
.gitignore vendored
View File

@ -58,3 +58,5 @@ debian/osmo-pcu-dbg/
debian/osmo-pcu.substvars
debian/osmo-pcu/
debian/tmp/
osmo-pcu.pc

View File

@ -3,3 +3,5 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
SUBDIRS = include src examples tests
EXTRA_DIST = osmoappdesc.py
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = osmo-pcu.pc

View File

@ -83,6 +83,7 @@ STD_DEFINES_AND_INCLUDES="-Wall"
AC_SUBST(STD_DEFINES_AND_INCLUDES)
AC_OUTPUT(
osmo-pcu.pc
include/Makefile
src/Makefile
examples/Makefile

View File

@ -1,3 +1,4 @@
etc/osmocom/osmo-pcu.cfg
usr/bin/osmo-pcu
usr/include/osmocom/pcu/pcuif_proto.h
usr/lib/pkgconfig/osmo-pcu.pc

10
osmo-pcu.pc.in Normal file
View File

@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/
Name: OsmoPCU
Description: Osmocom PCU implementation
Requires:
Version: @VERSION@
Cflags: -I${includedir}