Boost logo

Boost-Build :

From: Christopher Currie (Christopher_at_[hidden])
Date: 2003-11-03 10:45:24


Vladimir Prus wrote:

> The solution, I think, it to avoid the generators and create the targets
> directory, by deriving a class from 'basic-target' class and overriding it's
> 'construct' method. The construct method will create targets and action, set
> something like 'objlink.link' as rule for action, and define the 'link'
> action.
>
> You can pass the list of sources to create to the constructor of this class,
> and then use the names in 'construct'.
>
> The 'make.jam' module gives a reasonable example, in fact, it only differs by
> the fact that it can't produce several files.

I *think* I follow what you're suggesting. Looking at 'make.jam'
definitely gives me ideas.

> BTW, I recall you was planning to write a tutorial on creating main target
> class, so you might know everything already?

I'd hardly say I know everything; as I recall, someone had asked the
question about how to make main target rules, and I had just started
work on this particular problem, so I hoped to post a walkthrough based
on my experiences. I still plan to do so, once I get this working to my
satisfaction; my efforts had been on the back burner until recently.

Thanks for your help, I'll bug you if I get stuck again.

Christopher

 


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