Boost logo

Boost-Build :

Subject: [Boost-build] Picking up options from pkg-config
From: Daniel Lidström (daniel.lidstrom_at_[hidden])
Date: 2009-04-01 08:46:11


Hello,

some of my friends at work are currently looking into scons.
They want to switch from Boost.Build that I introduced a few
years ago, one of the reasons being that they find it hard
to customize Boost.Build. One example I was shown was how
they are able to parse the output from pkg-config to set
up compilation and linking flags. It looks like this:

env.ParseConfig("pkg-config --cflags --libs glib-2.0")

The output from pkg-config is this:
georog-dev:/home/daniel> pkg-config --cflags --libs glib-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lglib-2.0

I'm wondering if it's possible to do this with Boost.Build.
It seems like something very useful, at least on Linux systems
(or other where pkg-config is also used).

Thanks in advance!

Regards,

Daniel Lidström,
Software Developer
SBG AB


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk