On 3/19/21 4:04 AM, Chris Piker wrote:

Has there ever been talk of adding C source code support to dub, or is that a forbidden topic?  I know if dub supported C, all my C libs and all my necessary dependencies (openssl, expat, etc.) would have dub.json files before the weekend was over.


Chris: for one of my (D) libraries that also links in an .o file that's built from C source, I have a makefile for the C and call `make` during the dub build process.

It is not incredibly sophisticated, but works well for us. Here is the dubfile with `preBuildCommands`:

https://github.com/blachlylab/intervaltree/blob/master/dub.json

Kind regards

Reply via email to