Dub and bindings
qznc via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 11 14:50:19 PST 2017
Are there any general tips or best practices for bindings in dub
packages?
For example, I love the d2sqlite3 package. It just works out of
the box. No linker configuration or anything. However, that is
probably a testament to sqlite's lack of dependencies. That
cannot work for libraries, which rely on other libraries.
Should the C code be included in the Github repo? Are submodules
fine? Should the C build be invoked by dub via
"preBuildCommands"? What about system libraries? Can that be made
cross-platform? Should lflags be specified in the dub config or
should they be passed via environment variable?
There should be a general guide for this. Maybe there already is
one?
More information about the Digitalmars-d-learn
mailing list