bhelyer edited this page Jun 25, 2012 · 17 revisions
Clone this wiki locally


dbuilder is a tool to build D projects in an easy to use manner. There are three ways to use dbuilder:

  1. from the command line
  2. from a config file
  3. both command line / config file (command line overrides a value if it exists in the config file)


  1. dbuilder builds your project in parallel
  2. supports the three major D implementations (ldc / gdc /dmd)
  3. easy to build as a static or shared library or simply as an executable
  4. cross platform support -- Windows / Mac OS X / Linux


The workflow is split into four steps:

  1. configure: generate a cache to save some data
  2. build: build the project by following the information given when configuring
  3. clean: remove generated file(s)
  4. install: install binary
$ ./dbuilder <configure|build|clean|install>

To see which parameter to use, put -h flag, for example:

$ ./dbuilder -h
$ ./dbuilder configure -h

Note : dbuilder will search automatically for which compiler to use if any is set. To force the use of a compiler:

$ ./dbuilder configure --compiler=ldc2

Basic config file

When instructions are in a config file (dbuilder.ini or dbuilder.cfg), the only thing to do is ./dbuilder build && ./dbuilder install. Done!


The brackets should contain the project name.

Set the directory where the D source files are located.

Set type of build: executable | standard | shared