using dub to compile plugins

Neia Neutuladh neia at ikeran.org
Fri Dec 21 16:52:45 UTC 2018


On Fri, 21 Dec 2018 10:56:39 +0000, Atila Neves wrote:
> I don't see how you can do this with dub, and I wouldn't attempt it
> either. Just use make, and have make call dub for the main project (and
> potentially any plugins that need it). Remember to make the dub targets
> `.PHONY` since you don't want to be managing the D dependencies by hand.

Or you could have it depend on dub.sdl, dub.selections.json, your D source 
files, and your string import files. Which is a bit more work but will 
result in a little less recompilation.


More information about the Digitalmars-d-learn mailing list