-
Notifications
You must be signed in to change notification settings - Fork 37
/
dub.json
88 lines (75 loc) · 2.53 KB
/
dub.json
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "dstep",
"description": "A tool for translating C and Objective-C headers to D modules",
"authors": ["Jacob Carlborg"],
"homepage": "https://github.com/jacob-carlborg/dstep",
"license": "BSL-1.0",
"copyright": "Copyright (c) 2011-2016 Jacob Carlborg. All rights reserved.",
"targetType": "executable",
"targetPath": "bin",
"buildRequirements": ["silenceWarnings"],
"stringImportPaths": ["resources"],
"preGenerateCommands": ["$DUB $PACKAGE_DIR/tools/generate_version.d"],
"preBuildCommands": [
"$DUB configure --if-needed"
],
"lflags": ["@$PACKAGE_DIR/linker_flags.txt"],
"libs-windows": ["version"],
"buildTypes": {
"release": {
"buildOptions": ["optimize", "inline"],
"dflags-osx-ldc": ["-flto=full"],
"lflags-osx-ldc": ["-dead_strip"]
}
},
"configurations": [
{
"name": "default",
"targetName": "dstep",
"mainSourceFile": "dstep/main.d",
"sourcePaths": ["dstep", "clang"],
"importPaths": ["."]
},
{
"name": "test-functional",
"targetName": "functional",
"targetType": "executable",
"targetPath": "bin/test",
"sourcePaths": ["tests/support"],
"sourceFiles": ["tests/functional/Tests.d", "dstep/driver/Util.d"],
"buildOptions": ["unittests", "debugMode", "debugInfo"],
"dflags": ["-main"],
"libs-windows": ["ole32"]
},
{
"name": "test-unit",
"targetName": "unit",
"targetType": "executable",
"targetPath": "bin/test",
"sourcePaths": ["dstep", "clang", "tests/unit", "tests/support"],
"excludedSourceFiles": ["dstep/main.d"],
"dflags": ["-main"],
"buildOptions" : ["unittests", "debugMode", "debugInfo"]
},
{
"name": "test-library",
"targetName": "library",
"targetType": "executable",
"targetPath": "bin/test",
"mainSourceFile": "library_test.d"
},
{
"name": "unittest",
"targetName": "wrapper",
"targetPath": "bin/test",
"mainSourceFile": "test.d"
},
{
"name": "library",
"targetType": "library",
"sourcePaths": ["dstep", "clang"],
"importPaths": ["."],
"excludedSourceFiles": ["dstep/main.d"]
}
]
}