|
Boost-Build : |
Subject: Re: [Boost-build] How to set special generation requirements for generated files
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2010-07-22 14:35:38
Moritz Hassert wrote:
> * Does anyone know a more elegant solution to this problem I completely
> overlooked?
I don't know whether you'd consider this more elegant, but I think you'll agree
this being simpler:
rule bison-obj ( name : sources * : reqs * : def-build * : usage-reqs * )
{
obj $(name) : $(sources)
: $(reqs) <define>SOME_MACRO <include>some/path
: $(def-build)
: $(usage-reqs)
;
}
bison-obj bison1
: bison1.yy
: <bison.prefix>pre1
;
bison-obj bison2
: bison2.yy
: <bison.prefix>pre2
;
Or perhaps as simple as this?
local bison-reqs = <define>SOME_MACRO <include>some/path ;
obj bison1
: bison1.yy
: <bison.prefix>pre1 $(bison-reqs)
;
obj bison2
: bison2.yy
: <bison.prefix>pre2 $(bison-reqs)
;
Best Regards,
Gevorg
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