Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to dynamically get the source?
From: Paulo Márcio Figueiredo Alves (pauloalves1986_at_[hidden])
Date: 2013-12-17 06:23:23


Hi,

  Just in case anyone interested, in attachment a svn source getter.

How to:

#
# build.jam
#
import svn ;

lib external_lib : my_dependency_description_file.svn
  :
    <svn-output-root>/download/source/to
    <svn-output-header>header.h
    <svn-output-source>source.cpp
  :
    <include>/download/source/to
  ;

#
# my_dependency_description_file.svn
#
http://svn.boost.org/svn/boost/trunk/tools/build/v2 $(root)

You may add multiple lines in .svn file.

PS.: Please, let me know any improvement.

On Wed, Dec 4, 2013 at 1:44 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> 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
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>






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