Am I right understand the dub.json system?

Edwin van Leeuwen via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 29 04:34:02 PST 2016


On Monday, 29 February 2016 at 12:27:04 UTC, Suliman wrote:
> For example I have got app that depended on DDBC. In 
> configuration section DDBC related on:
>
> "libs-posix": [
> "sqlite3",
> "pq"
> ]
>
> Does it's mean that it will try to find this 2 libs in any 
> case? Even I do not use them.
>
> If I do not need them what I should to do? Fix 
> ~/.dub/packages/ddbc and remove this strings from it, or what?

Reading the dub.json from ddbc it seems you can specify which 
version you want. So if you only need mysql support you add
"versions": ["USE_MYSQL"],
in your own dub.json file.


More information about the Digitalmars-d-learn mailing list