Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to dynamically get the source?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-12-04 10:44:26


AMDG

On 12/04/2013 03:09 AM, Paulo Márcio Figueiredo Alves wrote:
> Hi,
>
> I`m trying to get the source during the build, and then compile it. This
> works if I call twice:
>
> # - - -
> import path ;
>
> actions get-source
> {
> svn export/checkout https://myrepo/svn/foo somewhere
> # Or I could use wget, create a .cpp etc
> }
> make source-code : : @get-source ;
> explicit source-code ;
>
> lib a_random_library_name : [ path.glob somewhere : *.h *.cpp ] :
> <dependency>source-code ;
> # - - -
>
> Any idea how to make it work?
>

The reason that this doesn't work is that
path.glob runs before the svn command. To
make this work correctly, Boost.Build needs
to know all the targets that will be created
by your action.

In Christ,
Steven Watanabe


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