|
Boost-Build : |
Subject: Re: [Boost-build] generator problems
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-03-23 00:01:31
AMDG
On 03/22/2012 08:31 PM, George Georgiev wrote:
> Hi,
>
> Something that I can not understand is how the scanner will be able to
> detect the dependencies if the files are still not generated.
Generated targets are rescanned for dependencies.
i.e. the include scanner should run /after/
lib1-1.cpp is created.
> I feel
> like the right solutions is in scanner.process to be added fake
> propagation explaining the expected dependencies. In pseudo code:
>
>
> rule process ( target : matches * : binding )
> {
> ...
>
> local cpp = get cpp target from $(target);
> headers = get h targets from $(matches);
> INCLUDES $(cpp) : $(headers) ;
> }
>
> Unfortunately I am laking a basic knowledge of jam language and every
> experiment takes me forever to implement.
>
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