diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2017-01-30 10:21:52 -0600 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-01-30 10:21:52 -0600 |
commit | 345bef7533e26ce907c7e6024524496d47fa53a4 (patch) | |
tree | c4739168855954e899bd5233027caace46167f84 | |
parent | 4eb5235ace7befdc161808ec99692b90975706c8 (diff) | |
download | phosphor-dbus-interfaces-345bef7533e26ce907c7e6024524496d47fa53a4.tar.gz phosphor-dbus-interfaces-345bef7533e26ce907c7e6024524496d47fa53a4.zip |
build: Generate package-config file
Change-Id: Ib776dad5936f1542fd2855a67954f2959c23ef45
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | phosphor-dbus-interfaces.pc.in | 11 |
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@ |