View previous topic :: View next topic |
Author |
Message |
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Sat May 15, 2010 9:54 am Post subject: CDC, an alternative to BUD |
|
|
This is a shameless self promotion.
I noticed that Bud hasn't been updated in a few years so 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 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.
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. |
|
Back to top |
|
|
moechofe
Joined: 07 Oct 2006 Posts: 25 Location: Paris, France
|
Posted: Sat Jun 26, 2010 5:24 am Post subject: |
|
|
I'm using it. |
|
Back to top |
|
|
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Sat Jun 26, 2010 9:25 am Post subject: |
|
|
That's great. Let me know if you run into any trouble with it. |
|
Back to top |
|
|
moechofe
Joined: 07 Oct 2006 Posts: 25 Location: Paris, France
|
Posted: Fri Aug 13, 2010 10:29 am Post subject: |
|
|
Yes I have some linking trouble, but it seems more about my own config. |
|
Back to top |
|
|
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Fri Aug 13, 2010 10:36 am Post subject: |
|
|
If you happen across a simple test case, post it here and I'll take a look. |
|
Back to top |
|
|
|