dub.json dependencies per configuration?
Arjan via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Feb 10 15:38:04 PST 2015
Snippet from:
https://github.com/buggins/ddbc/blob/master/dub.json#L7
ddbc has a "dependencies" on "mysql-native": ">=0.0.12". But this
is only true for "configurations": "MySQL".
Is it allowed to put the dependency within the configuration
section for "MySQL?.
"dependencies": {
"mysql-native": ">=0.0.12"
},
"targetPath": "lib",
"targetType": "staticLibrary",
"configurations": [
{
"name": "full",
"versions": ["USE_MYSQL", "USE_SQLITE", "USE_PGSQL"],
"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" ]
},
{
"name": "MySQL",
"versions": ["USE_MYSQL"]
},
{
"name": "SQLite",
"versions": ["USE_SQLITE"],
"libs-posix": ["sqlite3"],
"libs-windows": ["sqlite3"],
"copyFiles-windows-x86": [ "libs/win32/sqlite3.dll" ],
"sourceFiles-windows-x86" : [
"libs/win32/sqlite3.lib" ]
},
{
"name": "PGSQL",
"versions": ["USE_PGSQL"],
"libs-posix": ["pq"],
"libs-windows": ["libpq"],
"copyFiles-windows-x86": [ "libs/win32/libpq.dll",
"libs/win32/intl.dll" ],
"sourceFiles-windows-x86" : [ "libs/win32/libpq.lib" ]
}
]
More information about the Digitalmars-d-learn
mailing list