Blog post: using dynamic libraries in dub

Neia Neutuladh neia at ikeran.org
Tue Dec 19 17:58:26 UTC 2017


 From the "it's a hacky workaround but it's what we've got" 
department: how to use dynamic libraries in dub, with GtkD as the 
example.

GtkD takes about 45MB on its own, and that means it can take a 
fair bit of time to build anything that depends on it -- even if 
it only uses a handful of symbols. Building it as a dynamic 
library can shrink compile times significantly.

https://blog.ikeran.org/?p=323

An example of this strategy in use: 
https://git.ikeran.org/dhasenan/resin-browser/src/master/dub.json


More information about the Digitalmars-d-announce mailing list