JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Sat May 15, 2010 10:02 am Post subject: CDC, Yet Another Build Tool |
|
|
This is a shameless self promotion. Even worse, I've cross-posted in the Build/Bud forums!
I wanted to draw attention to my own build tool, CDC. It's a single source file build script written in D and passes its command line arguments directly to dmd/gdc/ldc, except that it also accepts folders as well as files. So if all of your source files are in a folder named code/src, you could do something like:
Code: | dmd -run cdc.d code/src -of../bin/foo.exe -run |
Which would compile all of the source files, place foo.exe in the ../bin folder, and then run it.
It seems to work with all of the D1 compilers and with tango as well as phobos, but I could use some help making it work with D2 as well. I haven't tested it at all on Mac.
CDC is also a library for building D code. I used it with Yage to create a custom build script that creates libraries, documentation, and embedded files, all in only a few lines of additional code. I feel that using D itself is more powerful than a config file.
I'm not trying to compete with DSSS. CDC is for those looking for a very minimal and lightweight build script that can be included with your project. |
|