From: Yannick Brosseau Date: Wed, 1 Jun 2011 15:01:16 +0000 (-0400) Subject: Add pkg-config file generation X-Git-Tag: v0.14~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4cf459a783b914dfd2942b93c8ddbff11a025739;p=ust.git Add pkg-config file generation Signed-off-by: Yannick Brosseau Signed-off-by: Mathieu Desnoyers --- 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} +