aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/d2sqlite3/dub.sdl
blob: 40c1f9e5c2a95fb92ecda677f70c780fae76cfe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name        "d2sqlite3"
description "A thin wrapper around SQLite 3"
homepage    "https://github.com/dlang-community/d2sqlite3"
authors     "Nicolas Sicard" "Other contributors: see Github repo"
copyright   "Copyright 2011-18 Nicolas Sicard"
license     "BSL-1.0"
targetType  "library"
configuration "with-lib" {
    systemDependencies "SQLite version >= 3.8.7"
    libs "sqlite3"
    excludedSourceFiles "source/tests.d"
}
configuration "without-lib" {
    excludedSourceFiles "source/tests.d"
}
configuration "all-included" {
    libs "sqlite3" platform="windows"
    copyFiles "lib/win32/sqlite3.dll" "lib/win32/sqlite3.lib" platform="windows-x86"
    copyFiles "lib/win64/sqlite3.dll" "lib/win64/sqlite3.lib" platform="windows-x86_64"
    preBuildCommands "make -C $PACKAGE_DIR -f sqlite3.mak" platform="posix"
    sourceFiles "sqlite3.o" platform="posix"
    libs "dl" platform="linux-gdc"
    excludedSourceFiles "source/tests.d"
}
configuration "ci" {
    preBuildCommands "make -C $PACKAGE_DIR -f sqlite3.mak" platform="posix"
    sourceFiles "sqlite3.o" platform="posix"
    versions "SqliteEnableColumnMetadata" "SqliteEnableUnlockNotify"
}

configuration "unittest" {
    // Make sure source/tests.d is included
    systemDependencies "SQLite version >= 3.8.7"
    libs "sqlite3"
}