-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdub.json
62 lines (62 loc) · 2.68 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
{
"name": "mir-glas",
"description": "Generic Linear Algebra Subprograms",
"authors": ["Ilya Yaroshenko"],
"license": "BSL-1.0",
"copyright": "Copyright © 2016-, Ilya Yaroshenko",
"buildTypes": {
"target-native": {
"buildOptions": ["noBoundsCheck", "releaseMode", "optimize", "inline"],
"dflags-ldc": ["-betterC", "-linkonce-templates", "-enable-cross-module-inlining", "-mcpu=native"]
},
"target-default": {
"buildOptions": ["noBoundsCheck", "releaseMode", "optimize", "inline"],
"dflags-ldc": ["-betterC", "-linkonce-templates", "-enable-cross-module-inlining"]
},
},
"dependencies": {
"mir-algorithm" : ">=0.9.0 <2.0.0",
"mir-cpuid": ">=0.5.3"
},
"configurations": [
{
"name": "auto-native",
"targetType": "sourceLibrary",
"sourceFiles": ["source/glas/ndslice.d", "source/glas/fortran.d"],
"excludedSourceFiles": ["source/*"],
"preBuildCommands": [
"dub build --root='$MIR_GLAS_PACKAGE_DIR' --config=static --build=target-native --compiler=ldmd2 --build-mode=singleFile --parallel --force",
"dub build --root='$MIR_CPUID_PACKAGE_DIR' --build=release-nobounds --compiler=ldmd2 --build-mode=singleFile --parallel --force"
],
"libs": ["mir-glas", "mir-cpuid"]
},
{
"name": "auto-default",
"targetType": "sourceLibrary",
"sourceFiles": ["source/glas/ndslice.d", "source/glas/fortran.d"],
"excludedSourceFiles": ["source/*"],
"preBuildCommands": [
"dub build --root='$MIR_GLAS_PACKAGE_DIR' --config=static --build=target-native --compiler=ldmd2 --build-mode=singleFile --parallel --force",
"dub build --root='$MIR_CPUID_PACKAGE_DIR' --build=release-nobounds --compiler=ldmd2 --build-mode=singleFile --parallel --force"
],
"libs": ["mir-glas", "mir-cpuid"]
},
{
"name": "header",
"targetType": "sourceLibrary",
"sourceFiles": ["source/glas/ndslice.d", "source/glas/fortran.d"],
"excludedSourceFiles": ["source/*"],
"libs": ["mir-glas", "mir-cpuid"]
},
{
"name": "static",
"targetType": "staticLibrary",
"excludedSourceFiles": ["source/glas/internal/*", "source/glas/ndslice.d", "source/glas/fortran.d"]
},
{
"name": "dynamic",
"targetType": "dynamicLibrary",
"excludedSourceFiles": ["source/glas/internal/*", "source/glas/ndslice.d", "source/glas/fortran.d"]
}
],
}