Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-03-31 16:27:44

jeffreyholle wrote:

> I wish to employ bjam for a wxWidgets application development.

Neat.. wxWidgets is one of the big components I build with bjam. But I
don't use the wx-config system at all because bjam gives me more
consistent control for building than *config scripts do. That said...

> The smooth way to get all the compiler/linker flags and stuff is using
> "wx-config".
> I'd like to use something like:
> <cxxflags>$(wx-config --cppflags)
> in my Jamfile. However, this doesn't work.

bjam doesn't currently have a way to execute external programs outside
of the build actions.

> Is there a way to do this?

Taking GCC/Linux as the example you could make the build do the
equivalent of:

g++ .. `wx-config --cppflags` ...

By adding that sub-command invocation as one of the cxxflags:


-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ - grafik/ - 102708583/icq

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at