Re: [PATCH 2/9] tools/lib/traceevent: Added support for pkg-config
From: Tzvetomir Stoyanov
Date: Tue Dec 04 2018 - 03:51:27 EST
Hi Namhyung,
On Tue, Dec 4, 2018 at 9:32 AM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
>
> Hi Steve,
>
> On Fri, Nov 30, 2018 at 10:44:05AM -0500, Steven Rostedt wrote:
> > From: Tzvetomir Stoyanov <tstoyanov@xxxxxxxxxx>
> >
> > This patch implements integration with pkg-config framework.
> > pkg-config can be used by the library users to determine
> > required CFLAGS and LDFLAGS in order to use the library
> >
> > Signed-off-by: Tzvetomir Stoyanov <tstoyanov@xxxxxxxxxx>
> > Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
> > ---
>
> [SNIP]
> > diff --git a/tools/lib/traceevent/libtraceevent.pc.template b/tools/lib/traceevent/libtraceevent.pc.template
> > new file mode 100644
> > index 000000000000..42e4d6cb6b9e
> > --- /dev/null
> > +++ b/tools/lib/traceevent/libtraceevent.pc.template
> > @@ -0,0 +1,10 @@
> > +prefix=INSTALL_PREFIX
> > +libdir=${prefix}/lib64
>
> Don't we care 32-bit systems anymore? :)
>
It is my fault, going to submit a patch to parameterized it.
> Thanks,
> Namhyung
>
>
> > +includedir=${prefix}/include/traceevent
> > +
> > +Name: libtraceevent
> > +URL: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=02%7C01%7Ctstoyanov%40vmware.com%7Cbf86381418da46f7712108d659baaa20%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C636795055608012046&sdata=r6iXSffCrEzO0hRhpiIctdP2jcfbESaJxOZVrHLnAfw%3D&reserved=0
> > +Description: Linux kernel trace event library
> > +Version: LIB_VERSION
> > +Cflags: -I${includedir}
> > +Libs: -L${libdir} -ltraceevent
> > --
> > 2.19.1
> >
> >
--
Tzvetomir (Ceco) Stoyanov
VMware Open Source Technology Center