[lttng-dev] [LTTng-Tools PATCH] Add pkg-config for liblttng-ctl
Yannick Brosseau
yannick.brosseau at gmail.com
Thu Dec 20 14:28:00 EST 2012
Signed-off-by: Yannick Brosseau <yannick.brosseau at gmail.com>
---
.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 383dbf9..afc97b6 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 54aa385..be6736c 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 2681bdd..542f4bb 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 0000000..6c9d1e7
--- /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
+Version: @PACKAGE_VERSION@
+Requires:
+Requires.private:
+Libs: -L${libdir} -llttng-ctl
+Cflags: -I${includedir}
+
--
1.7.10.4
More information about the lttng-dev
mailing list