[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] [bbv2] using an external tool svnrev/subversion
From:       Vladimir Prus <ghost () cs ! msu ! su>
Date:       2006-01-24 16:29:26
Message-ID: 200601241929.27054.ghost () cs ! msu ! su
[Download RAW message or body]

On Tuesday 24 January 2006 18:59, Renaud Lepere wrote:
> > > In makefile world, svnrev can be used using a line
> > >
> > > svnrev.h : main.cpp gui.cpp gui.h storage.cpp storage.h
> > >     svnrev $?
> > >
> > > How can i do something similar in bbv2 ?
> >
> > The simplest way, I believe, is this:
> >
> > make svnrev.h : main.cpp gui.cpp gui.h storage.cpp storage.h
> >
> > : svnrev ;
> >
> > actions svnrev
> > {
> > 	svnrev -o$(<) $(>)
> > }
>
> It's impressive and really simple ! Thanks a lot.
> I just still have a little problem : svnrev.h is generated
> in the bin/... directory and if i include it in one of my file
> it can not be found at compile it. What should i do ?

Try <implicit-dependency> as documented at:
  
http://boost.org/boost-build2/doc/html/bbv2/reference/jamfiles.html#bbv2.reference.headers

- Volodya

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic