FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CDC, Yet Another Build Tool

 
Post new topic   Reply to topic     Forum Index -> DSSS
View previous topic :: View next topic  
Author Message
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Sat May 15, 2010 10:02 am    Post subject: CDC, Yet Another Build Tool Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DSSS All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group