From 2c452d45ca4b7532e92aca40a9d949c169a6a4a4 Mon Sep 17 00:00:00 2001 From: Yannick Brosseau Date: Thu, 20 Dec 2012 14:31:06 -0500 Subject: [PATCH] Add pkg-config for liblttng-ctl Signed-off-by: Yannick Brosseau Signed-off-by: David Goulet --- .gitignore | 2 +- configure.ac | 1 + src/lib/lttng-ctl/Makefile.am | 3 +++ src/lib/lttng-ctl/lttng-ctl.pc.in | 13 +++++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/lib/lttng-ctl/lttng-ctl.pc.in diff --git a/.gitignore b/.gitignore index 383dbf960..afc97b6eb 100644 --- a/.gitignore +++ b/.gitignore @@ -35,7 +35,7 @@ src/bin/lttng-sessiond/lttng-sessiond src/bin/lttng/lttng src/bin/lttng-consumerd/lttng-consumerd src/bin/lttng-relayd/lttng-relayd - +src/lib/lttng-ctl/lttng-ctl.pc src/lib/lttng-ctl/filter/filter-grammar-test src/lib/lttng-ctl/filter/filter-lexer.c src/lib/lttng-ctl/filter/filter-parser.c diff --git a/configure.ac b/configure.ac index 425941b99..857e8e9fc 100644 --- a/configure.ac +++ b/configure.ac @@ -281,6 +281,7 @@ AC_CONFIG_FILES([ src/lib/Makefile src/lib/lttng-ctl/Makefile src/lib/lttng-ctl/filter/Makefile + src/lib/lttng-ctl/lttng-ctl.pc src/bin/Makefile src/bin/lttng-consumerd/Makefile src/bin/lttng-sessiond/Makefile diff --git a/src/lib/lttng-ctl/Makefile.am b/src/lib/lttng-ctl/Makefile.am index 2681bddb2..542f4bbcf 100644 --- a/src/lib/lttng-ctl/Makefile.am +++ b/src/lib/lttng-ctl/Makefile.am @@ -11,3 +11,6 @@ liblttng_ctl_la_LIBADD = \ $(top_builddir)/src/common/libcommon.la \ $(top_builddir)/src/common/hashtable/libhashtable.la \ $(top_builddir)/src/lib/lttng-ctl/filter/libfilter.la + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = lttng-ctl.pc diff --git a/src/lib/lttng-ctl/lttng-ctl.pc.in b/src/lib/lttng-ctl/lttng-ctl.pc.in new file mode 100644 index 000000000..fd7a5ec1a --- /dev/null +++ b/src/lib/lttng-ctl/lttng-ctl.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: LTTng control library +Description: The LTTng control and utility library is a library used to control the tracing sessions of a LTTng-session deamon +Version: @PACKAGE_VERSION@ +Requires: +Requires.private: +Libs: -L${libdir} -llttng-ctl +Cflags: -I${includedir} + -- 2.34.1