Clone this wiki locally
dbuilder is a tool to build D projects in an easy to use manner. There are three ways to use
- from the command line
- from a config file
- both command line / config file (command line overrides a value if it exists in the config file)
dbuilderbuilds your project in parallel
- supports the three major D implementations (ldc / gdc /dmd)
- easy to build as a static or shared library or simply as an executable
- cross platform support -- Windows / Mac OS X / Linux
The workflow is split into four steps:
- configure: generate a cache to save some data
- build: build the project by following the information given when configuring
- clean: remove generated file(s)
- 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.cfg), the only thing to do is
./dbuilder build && ./dbuilder install. Done!
[dbuilder] sourcedir=src type=executable
The brackets should contain the project name.
Set the directory where the D source files are located.
Set type of build: executable | standard | shared