Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2004-02-05 06:04:51


Vladimir Prus wrote:
>Hi Reece,

> > [2] How do I link external libraries (e.g. urlmon.lib) to an executable?
>
>I think
>
>
>http://boost.sourceforge.net/boost-build2/boost_build_v2.html#prebuilt_targets

That is cool :). The only drawback is, I'd need to add a lib entry for all
the PlatformSDK libs :(. Or is there a way to templatize it, e.g.

forall $lib : <match>*.lib <search>$path.psdk
{
lib $lib : : <file>$lib.lib ;
}

?

> > [3] Is it possible to perform specific actions on a target? E.g. move an
> > exe to a specific directory once built?
>
> exe a : a.cpp ;
> stage dist : a ;

I'm aware of this action. The problem is that it creates a subdirectory
called dist then reinvokes the link action to build the exe to the dist
directory. This isn't bad, and can be useful in some situations. I have a
bin folder that I put some programs that I build into so I can invoke them.
This is a simple move command, e.g.

move : a : $path.mybin ;

> > Or specify an
> > action set, e.g.:
> >
> > action-set finalize :
> > <action>move
> > <action>run
> > ;
> >
> > exe hello : hello.cpp
> >
> > <bind-action>finalize
> > ;
>
>Nope, no generic way to run post-processing command exists. This is
>probably
>related to
>
> http://zigzag.cs.msu.su:7814/scarab/issues/id/BB51
>
>which asks for a way to just invoke a command from Boost.Build
>
> exe hello : hello.cpp ;
> notfile done : echo "build complete" : hello ;
>
>But probably you have something else in mind...

This is similar to what I would like to do, and the facility would allow for
better custom builds.

Regards,
Reece

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo

 


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