Boost logo

Boost-Build :

From: Adder (adder.thief_at_[hidden])
Date: 2008-05-19 16:14:25


Hi there,

>> In toolset/borland.jam (or a similar file), I need to modify
>>
>> rule link ( targets + : sources * : properties * ) ...
>>
>> in order to extract the sources of type OBJ in a separate variable.

JG> What you can do is implement a new generator class. In its run rule
JG> you get all the source targets as Boost Build's virtual-target objects
JG> which you can then easily analyze to see if they are typed targets and
JG> what their type is. See the comments in generators.jam & targets.jam to
JG> get you started but as I recall that rule returns a list whose first
JG> parameter is a property-set object representing usage requirements to be
JG> applied to all dependent targets and the rest is the list of newly
JG> generated virtual targets.

Thank you ! Thank you ! Thank you !

--
Yours truly,
Adder

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