From: Yannick Brosseau Date: Thu, 20 Dec 2012 19:31:06 +0000 (-0500) Subject: Add pkg-config for liblttng-ctl X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=2c452d45ca4b7532e92aca40a9d949c169a6a4a4;p=deliverable%2Flttng-tools.git Add pkg-config for liblttng-ctl Signed-off-by: Yannick Brosseau Signed-off-by: David Goulet --- 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} +