summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-03-14 07:28:55 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-03-28 20:54:05 +0000
commit48e6be3407257f67f5d12d143fdc3a862db8803e (patch)
tree98cd90126975272439b763d4a6d34f85ce02c773
parent77bc009e86eb30c9c8911d1727beb5923bd02551 (diff)
downloadopenpower-dbus-interfaces-48e6be3407257f67f5d12d143fdc3a862db8803e.zip
openpower-dbus-interfaces-48e6be3407257f67f5d12d143fdc3a862db8803e.tar.gz
build: Generate package-config file
Change-Id: I4aeaa38e190d2327e08106d42f83f9476beccccd Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac1
-rw-r--r--openpower-dbus-interfaces.pc.in12
3 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 6e63e81..105f33a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,6 +10,9 @@ libopenpower_dbus_la_CXXFLAGS = $(SDBUSPLUS_CFLAGS)
BUILT_SOURCES = libopenpower_dbus.cpp
CLEANFILES = libopenpower_dbus.cpp
+pkgconfiglibdir = ${libdir}/pkgconfig
+pkgconfiglib_DATA = openpower-dbus-interfaces.pc
+
clean-local: clean-dbus
-include Makefile.interfaces
diff --git a/configure.ac b/configure.ac
index f194a38..35f80a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,4 +34,5 @@ AC_CONFIG_FILES([Makefile.interfaces],
[${srcdir}/generate_makefile.sh ${srcdir} > Makefile.interfaces])
AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([openpower-dbus-interfaces.pc])
AC_OUTPUT
diff --git a/openpower-dbus-interfaces.pc.in b/openpower-dbus-interfaces.pc.in
new file mode 100644
index 0000000..5ec151e
--- /dev/null
+++ b/openpower-dbus-interfaces.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: openpower-dbus-interfaces
+Description: Generated sdbusplus bindings for openpower-dbus-interfaces.
+URL: https://github.com/openbmc/openpower-dbus-interfaces
+Version: @VERSION@
+Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
+Libs: -L@libdir@ -lopenpower_dbus
+Cflags: -I@includedir@
OpenPOWER on IntegriCloud