simple dub question - avoiding creating a vibed project

Gary Willoughby via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 5 04:57:20 PST 2015


On Monday, 5 January 2015 at 10:27:06 UTC, Laeeth Isharc wrote:
> Hi.
>
> I am building an example for hibernated (I put a main around 
> the sample code extract from the website).
>
> How do I stop dub trying to build a vibed project?
>
> Here is my dub.json
>
> {
>     "name": "ddbc example",
>     "description": "example for DB Connector for D language, 
> similar to JDBC",
>     "authors": ["Vadim Lopatin","Laeeth Isharc"],
>     "homepage": "https://github.com/buggins/ddbc",
>     "license": "Boost Software License (BSL 1.0)",
>     "dependencies": {
>         "mysql-native": ">=0.0.12",
> 	"ddbc": ">=0.2.16",
>     },
>     "targetType": "executable",
>     "libs-posix": ["sqlite3", "pq"],
>     "libs-windows": ["sqlite3", "libpq"],
>     "copyFiles-windows-x86": [ "libs/win32/sqlite3.dll", 
> "libs/win32/libpq.dll", "libs/win32/intl.dll" ],
>     "sourceFiles-windows-x86" : [ "libs/win32/sqlite3.lib", 
> "libs/win32/libpq.lib" ],
>      "targetPath": ".",
> }

I opened an issue about this last year:

https://github.com/mysql-d/mysql-native/issues/44


More information about the Digitalmars-d-learn mailing list