-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdub.json
101 lines (85 loc) · 3.34 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
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"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-posix": ["$PACKAGE_DIR/tools/generate_version.sh"],
"preGenerateCommands-windows": ["$PACKAGE_DIR/tools/generate_version.bat"],
"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": ["."],
"preBuildCommands-posix": [
"(! [ -s linker_flags.txt ] && ./configure) || true"
],
"lflags-windows": ["/LIBPATH:$PACKAGE_DIR/tmp/clang/lib"],
"lflags-windows-x86": ["/LIBPATH:C:\\PROGRA~2\\LLVM\\lib", "libclang.lib", "Ole32.lib"],
"lflags-windows-x86_64": ["/LIBPATH:C:\\PROGRA~1\\LLVM\\lib", "libclang.lib", "Ole32.lib"],
"lflags-posix": ["@linker_flags.txt"]
},
{
"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"],
"preBuildCommands-posix": [
"(! [ -s linker_flags.txt ] && ./configure) || true"
],
"lflags-windows": ["/LIBPATH:$PACKAGE_DIR/tmp/clang/lib"],
"lflags-windows-x86": ["/LIBPATH:C:\\PROGRA~2\\LLVM\\lib", "libclang.lib", "Ole32.lib"],
"lflags-windows-x86_64": ["/LIBPATH:C:\\PROGRA~1\\LLVM\\lib", "libclang.lib", "Ole32.lib"],
"lflags-posix": ["@linker_flags.txt"]
},
{
"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"]
}
],
}