Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to set special generation requirements for generated files
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-07-22 14:19:50


On Thursday 22 July 2010 21:56:15 Steven Watanabe wrote:

> AMDG
>
> Moritz Hassert wrote:
> > Something like this would be nice:
> >
> > #like obj rule, but resulting target is a CPP file
> > cpp bison1
> > : bison1.yy
> > : <bison.prefix>pre1 ;
> >
> > cpp bison2
> > : bison2.yy
> > : <bison.prefix>pre2 ;
> >
> > lib foo
> > : somefile.cpp
> > bison1
> > bison2
> > : <define>SOME_MACRO
> > <include>some/path ;
> >
> > Like with the obj rule, you wouldn't specify the file suffix. That way such a
> > target is not confused with a normal cpp-file.
> >
>
> This doesn't work? I would have expected it to. There should be a rule
> for every file type that Boost.Build handles.

That's my understanding too. Every new type automatically creates a metatarget rule
with the same name.

Thanks,

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

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