List Info

Thread: The 'generate' rule




The 'generate' rule
user name
2007-01-06 16:13:07
Hi,
now we have *documented* new rule, called 'generate', that,
similar to 'make' allows one to describe custom
transformations
right in Jamfile, but unlike 'make' operates with virtual
targets.

The new rule is almost as powerful as generators, but does
not
require declaring class, registering it, and generally has
less syntax noise -- so it's good for quick tasks.

The example usage is:

	rule generate-example ( project name : property-set :
sources * )
	{
		# Fancy logic creating virtual targets.
	}

	generate a2 : a.cpp : <generating-rule>generate-example ;

And the complete example is in example/generate directory in
CVS HEAD,
and the docs are:

	http://boost.org/boost-build2/doc/html/bbv2/builtin
s/raw.html

Comments will be appreciated.

- Volodya

	
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )