From 4cf459a783b914dfd2942b93c8ddbff11a025739 Mon Sep 17 00:00:00 2001 From: Yannick Brosseau Date: Wed, 1 Jun 2011 11:01:16 -0400 Subject: [PATCH] Add pkg-config file generation Signed-off-by: Yannick Brosseau Signed-off-by: Mathieu Desnoyers --- .gitignore | 1 + Makefile.am | 3 +++ configure.ac | 1 + ust.pc.in | 13 +++++++++++++ 4 files changed, 18 insertions(+) create mode 100644 ust.pc.in diff --git a/.gitignore b/.gitignore index 68c7364..6ae624e 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ config.log config.status stamp-h1 libtool +ust.pc ustctl/ustctl ust-consumerd/ust-consumerd diff --git a/Makefile.am b/Makefile.am index 9e16546..bff6198 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,3 +22,6 @@ libust.so: libust.ldscript.in # may get obscure errors when linking to shared libraries. libust-initializer.o: libust-initializer.c $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -I$(top_srcdir) -o $@ $< + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = ust.pc \ No newline at end of file diff --git a/configure.ac b/configure.ac index 1461fc8..5d91432 100644 --- a/configure.ac +++ b/configure.ac @@ -174,5 +174,6 @@ AC_CONFIG_FILES([ libustcomm/Makefile libustctl/Makefile snprintf/Makefile + ust.pc ]) AC_OUTPUT diff --git a/ust.pc.in b/ust.pc.in new file mode 100644 index 0000000..095cdbb --- /dev/null +++ b/ust.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: LTTng Userspace Tracer +Description: The Userspace Tracer (UST) is a library accompanied by a set of tools to trace userspace code. +Version: @PACKAGE_VERSION@ +Requires: +Requires.private: liburcu-bp +Libs: -L${libdir} -lust +Cflags: -I${includedir} + -- 2.34.1