Opened 20 years ago

Closed 19 years ago

#44 closed task (fixed)

Lightweight generator customization

Reported by: ghost Owned by: somebody
Priority: major Milestone: M12
Component: component1 Version:
Keywords: Cc:

Description

Writing a new class for generator is a bit boring, and most often, we only want to override the 'run' method. It's possible to create special rule that takes a user-provide rule to serve as generator's run rule.

For example:

build-indirectly spirit : @spirit-builder ;
# The parameters of the run as the same as for generator.run
rule spirit-builder ( name project ? : sources * : property-set )
{
   ....
}

It's necessary, though, to provide a way to call 'run' method of any existing generator from user-provided rule.

Change History (3)

comment:1 by ghost, 19 years ago

Milestone: M13

comment:2 by ghost, 19 years ago

Milestone: M13M12

This is implemented, except for docs.

comment:3 by ghost, 19 years ago

Resolution: fixed
Status: newclosed

Documented.

Note: See TracTickets for help on using tickets.