About Dub capabilities

Martin Nowak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 4 14:02:55 PDT 2017


On Tuesday, 4 July 2017 at 20:46:33 UTC, Dukc wrote:
> Not that I have any need for that right now, I am just 
> interested.

preGenerate-/preBuildCommands are your friends to compile C++ 
code using dub.
You'd invoke make or sth. and add the generated libs/objects to 
dub's sourceFiles.
http://code.dlang.org/package-format?lang=json#build-settings

Dub can also generate scripts for other build systems (among them 
cmake), in case that seems more suitable for your needs.


More information about the Digitalmars-d-learn mailing list