Re Build system requirements [ was Re: Prototype buildsystem "Drake" ]

Russel Winder russel at russel.org.uk
Wed Jul 13 10:18:20 PDT 2011


On Wed, 2011-07-13 at 17:33 +0200, Jacob Carlborg wrote:

> target("main.d"); // builds "main.d" as an executable

The SCons equivalent is:

	Program ( 'main.d' )

> Or:
> 
> target("foobar"); // builds the directory "foobar" as a library

SCons (and I think Waf as well) does not support this idea (at least
currently).  In SCons you have to say:

	SharedLibrary ( 'libraryRootName' , Glob ( 'foobar/*.d' ) )
	StaticLibrary ( 'libraryRootName' , Glob ( 'foobar/*.d' ) )

D support in Waf is currently far more sophisticated than that of SCons,
but is still based on being a bit more explicit that your proposal
above.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110713/2ba81989/attachment-0001.pgp>


More information about the Digitalmars-d mailing list