Am I right understand the dub.json system?

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 29 04:45:36 PST 2016


On Monday, 29 February 2016 at 12:34:02 UTC, Edwin van Leeuwen 
wrote:
> 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.

Should it be like this?
http://www.everfall.com/paste/id.php?80k9jsgdx6o3

     "versions": ["VibeCustomMain"],
     "versions": ["USE_MYSQL"],

And by log it's again try to build sqllite.



More information about the Digitalmars-d-learn mailing list