From d0acc96d14a7a30e338d9b2a4a57857408c8deac Mon Sep 17 00:00:00 2001 From: Yannick Brosseau Date: Fri, 14 Dec 2012 07:35:09 -0500 Subject: [PATCH] Provides a basic pkg-config file for libbabeltrace 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 Signed-off-by: Mathieu Desnoyers --- 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 7a636128..b25b58fe 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 00000000..12349dd9 --- /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 19f16a63..86dd17c4 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 -- 2.34.1