summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac1
-rw-r--r--phosphor-dbus-interfaces.pc.in11
3 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 7ac8318..354cfc9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,6 +10,9 @@ libphosphor_dbus_la_CXXFLAGS = $(SYSTEMD_CFLAGS)
BUILT_SOURCES = libphosphor_dbus.cpp
CLEANFILES = libphosphor_dbus.cpp
+pkgconfiglibdir = ${libdir}/pkgconfig
+pkgconfiglib_DATA = phosphor-dbus-interfaces.pc
+
clean-local: clean-dbus
-include Makefile.interfaces
diff --git a/configure.ac b/configure.ac
index 770637c..b4bcc07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,4 +41,5 @@ LT_LIB_DLLOAD
AC_CONFIG_FILES([Makefile.interfaces],
[${srcdir}/generate_makefile.sh ${srcdir} > Makefile.interfaces])
AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([phosphor-dbus-interfaces.pc])
AC_OUTPUT
diff --git a/phosphor-dbus-interfaces.pc.in b/phosphor-dbus-interfaces.pc.in
new file mode 100644
index 0000000..3240872
--- /dev/null
+++ b/phosphor-dbus-interfaces.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: phosphor-dbus-interfaces
+Description: Generated sdbusplus bindings for phosphor-dbus-interfaces.
+URL: https://github.com/openbmc/phosphor-dbus-interfaces
+Version: @VERSION@
+Libs: -L@libdir@ -lphosphor_dbus
+Cflags: -I@includedir@
OpenPOWER on IntegriCloud