[patch] Re: Extensions to .pc files

Brad Hards bradh at frogmouth.net
Sat Jun 6 23:39:06 PDT 2009


On Sunday 07 June 2009 02:20:42 pm Brad Hards wrote:
> The other possibility I considered (actually considered first, before I
> realised I could use the --variable approach) was to extend pkg-config to
> use a X.foo_extension syntax:
> Libs: -lfoo
> Cflags: -I${includedir}
> X.dehydra_script: {prefix}/share/libfoo-dehydra-check.js
> X.dehydra_insert_after: useless
>
> then we could use
> $ pkg-config --x=dehydra_script foo
> /usr/local/share/libfoo-dehydra-check.js
If it isn't clear what this might mean, I've done up a first cut 
implementation. See attached patch.

Brad


-------------- next part --------------
A non-text attachment was scrubbed...
Name: x-extend-2009-06-07.patch
Type: text/x-diff
Size: 8780 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pkg-config/attachments/20090607/7e561bc3/attachment.patch 


More information about the pkg-config mailing list