[ltt-dev] [UST PATCH] Add pkg-config file generation

Mathieu Desnoyers compudj at krystal.dyndns.org
Wed Jun 1 10:59:36 EDT 2011


* Yannick Brosseau (yannick.brosseau at gmail.com) wrote:
> Signed-off-by: Yannick Brosseau <yannick.brosseau at gmail.com>

Merged, thanks!

Mathieu

> ---
>  .gitignore   |    1 +
>  Makefile.am  |    3 +++
>  configure.ac |    1 +
>  ust.pc.in    |   13 +++++++++++++
>  4 files changed, 18 insertions(+), 0 deletions(-)
>  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} 
> +
> -- 
> 1.7.2.3
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




More information about the lttng-dev mailing list