diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-12-12 17:00:33 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-12-13 10:58:59 +0000 |
commit | afde9190f3ecb381c09096f13ab67179da7285e3 (patch) | |
tree | 6a1b091b54471c3fa1c8c353d54a2f7840286de0 | |
parent | b2521e80d00cd6fa6743699f3f5247318c438b84 (diff) |
Add a pkg-config file.
It's only useful if both the shared library is enabled, and the headers
are to be installed. If so, great happiness ensues.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | wocky/Makefile.am | 5 | ||||
-rw-r--r-- | wocky/wocky-uninstalled.pc.in | 1 | ||||
-rw-r--r-- | wocky/wocky.pc.in | 11 |
5 files changed, 18 insertions, 1 deletions
@@ -75,6 +75,7 @@ m4/lt~obsolete.m4 wocky/*-signals-marshal.* wocky/*-enumtypes.* wocky/wocky-uninstalled.pc +wocky/wocky.pc tests/sasl-test.db tests/test-report.xml diff --git a/configure.ac b/configure.ac index b770130..cd01bca 100644 --- a/configure.ac +++ b/configure.ac @@ -243,6 +243,7 @@ GTK_DOC_CHECK([1.17],[--flavour no-tmpl]) AC_OUTPUT( Makefile \ wocky/Makefile \ wocky/wocky-uninstalled.pc \ + wocky/wocky.pc \ m4/Makefile \ tools/Makefile \ examples/Makefile \ diff --git a/wocky/Makefile.am b/wocky/Makefile.am index 868fb09..77acbb6 100644 --- a/wocky/Makefile.am +++ b/wocky/Makefile.am @@ -178,6 +178,11 @@ libwocky_la_SOURCES = $(handwritten_sources) $(built_sources) \ if INSTALL_HEADERS libwocky_la_HEADERS = $(handwritten_headers) $(built_headers) libwocky_ladir = $(HEADER_DIR)/wocky + +if ENABLE_SHARED_SUFFIX + pkgconfigdir = ${libdir}/pkgconfig + pkgconfig_DATA = wocky.pc +endif endif # Coding style checks diff --git a/wocky/wocky-uninstalled.pc.in b/wocky/wocky-uninstalled.pc.in index fb286a9..429a256 100644 --- a/wocky/wocky-uninstalled.pc.in +++ b/wocky/wocky-uninstalled.pc.in @@ -6,7 +6,6 @@ abs_top_builddir=@abs_top_builddir@ Name: Wocky (uninstalled copy) Description: XMPP library Version: @VERSION@ -Requires: pkg-config >= 0.21 Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, gio-2.0 >= 2.26 Libs: ${abs_top_builddir}/wocky/libwocky.la Cflags: -I${abs_top_srcdir} -I${abs_top_builddir} -I${abs_top_builddir}/wocky diff --git a/wocky/wocky.pc.in b/wocky/wocky.pc.in new file mode 100644 index 0000000..874ecf6 --- /dev/null +++ b/wocky/wocky.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Wocky +Description: XMPP library +Version: @VERSION@ +Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, gio-2.0 >= 2.26 +Libs: -L${libdir} -lwocky +Cflags: -I@HEADER_DIR@ |