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

CDC, an alternative to BUD

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



Joined: 29 Oct 2005
Posts: 294

PostPosted: Sat May 15, 2010 9:54 am    Post subject: CDC, an alternative to BUD Reply with quote

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
View user's profile Send private message
moechofe



Joined: 07 Oct 2006
Posts: 25
Location: Paris, France

PostPosted: Sat Jun 26, 2010 5:24 am    Post subject: Reply with quote

I'm using it.
Back to top
View user's profile Send private message
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Sat Jun 26, 2010 9:25 am    Post subject: Reply with quote

That's great. Let me know if you run into any trouble with it.
Back to top
View user's profile Send private message
moechofe



Joined: 07 Oct 2006
Posts: 25
Location: Paris, France

PostPosted: Fri Aug 13, 2010 10:29 am    Post subject: Reply with quote

Yes I have some linking trouble, but it seems more about my own config.
Back to top
View user's profile Send private message
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Fri Aug 13, 2010 10:36 am    Post subject: Reply with quote

If you happen across a simple test case, post it here and I'll take a look.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build 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