[lttng-dev] [BABELTRACE PATCH] Provides a basic pkg-config file for libbabeltrace
Yannick Brosseau
yannick.brosseau at gmail.com
Fri Dec 14 01:11:43 EST 2012
This pkg-config file specify the usage of libbabeltrace and libbabeltrace-ctf since ctf is
the only format currently supported and tested.
Signed-off-by: Yannick Brosseau <yannick.brosseau at gmail.com>
---
Makefile.am | 3 +++
babeltrace.pc.in | 14 ++++++++++++++
configure.ac | 1 +
3 files changed, 18 insertions(+)
create mode 100644 babeltrace.pc.in
diff --git a/Makefile.am b/Makefile.am
index 7a63612..b25b58f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,3 +8,6 @@ dist_doc_DATA = ChangeLog LICENSE mit-license.txt gpl-2.0.txt \
std-ext-lib.txt
dist_noinst_DATA = CodingStyle
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = babeltrace.pc
diff --git a/babeltrace.pc.in b/babeltrace.pc.in
new file mode 100644
index 0000000..12349dd
--- /dev/null
+++ b/babeltrace.pc.in
@@ -0,0 +1,14 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Babeltrace
+Description: libbabeltrace provides a reader for trace files, reading mainly the
+Common Trace Format (CTF).
+Version: @PACKAGE_VERSION@
+Requires:
+Requires.private: uuid popt
+Libs: -L${libdir} -lbabeltrace -lbabeltrace-ctf
+Cflags: -I${includedir}
+
diff --git a/configure.ac b/configure.ac
index 19f16a6..86dd17c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -109,5 +109,6 @@ AC_CONFIG_FILES([
tests/lib/Makefile
extras/Makefile
extras/valgrind/Makefile
+ babeltrace.pc
])
AC_OUTPUT
--
1.7.10.4
More information about the lttng-dev
mailing list