The actual building system for D

I know that there are DSSS , BUD / build, Orbit Jacob Karlborg and official rdmd . And only Orbit seems to be active. So, which one is most useful for creating huge complex D programs with many dependencies? No packaging is required, just a good and clear assistant to the assembly process.

+7
source share
3 answers

They too, the template for using makefile is here: MakefileForD

why use it:

  • easy to use
  • support for all compilers
  • the ability to create both a general and a static lib or executable file
  • // build
+4
source

Not a finished product, but ....

DMD already has one - the deps flag , which should make the auto-generated make files simple enough.

+4
source

I definitely argue about rdmd - this is a great helper to work around your favorite compiler. The main use in documents:

 rdmd [rdmd args] [compiler args] <source file>[.d] [executable args] 

In all my D projects, I just used Bash scripts (with Cygwin if on Windows) and it worked fine. Here are some of my favorite snippets:

Run

The whole point of rdmd is to simplify the compile-edit-run loop for editing, and this makes it pretty simple:

 rdmd helloworld.d [args] 

rdmd will not run files with a shorter timestamp than the last compilation, so the next time you run the same source file without editing, it will simply go to the previously compiled executable.

Choose a compiler

Despite the name, you can use most rdmd compilers like GDC, LDC, and DMD like this:

 rdmd --compiler=dmd ... 

Addition:

Normally rdmd stores executables and *.obj files from your source in the temp directory, using tmpDir() in the rdmd source is basically some kind of magic to give rdmd feel of running *.d files as scripts. However, you can specify the output file with the -of flag:

 rdmd -of"helloworld.exe" helloworld.d 
+1
source

All Articles