Boost logo

Boost-Build :

Subject: Re: [Boost-build] how to use exe target from generator tool
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-02-29 16:50:31


AMDG

On 02/29/2012 01:32 PM, George Georgiev wrote:
> Thank you Steven,
>
> This will help only after the rules define these dependencies though.
> Do you know where I can find an example how .y generator is defined.
>

<implicit-dependency> doesn't have to be precise.
It only indicates a /potential/ dependency for
the include scanner to resolve. Thus, you can do
something like:

exe tool : file1.cpp file2.cpp file3.compil file4.compil ;

All the #includes will be resolved automatically.
If you have separate targets, then you need
something like:

cpp file3.cpp : file3.compil ;
cpp file4.cpp : file4.compil ;

alias headers : file3.cpp file4.cpp ;

for local i in 1 2 3 4 {
  obj file$(i).o : file$(i).cpp : <implicit-dependency>headers ;
}

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