-
Notifications
You must be signed in to change notification settings - Fork 0
/
dub.sdl
72 lines (64 loc) · 1.94 KB
/
dub.sdl
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
name "bdwgc-d"
description "bdwgc - D bindings"
version "0.2.4"
license "Apache-2.0"
authors "Matheus Catarino França <matheus-catarino@hotmail.com>"
copyright "Copyright 2024 - Matheus Catarino França"
targetType "sourceLibrary"
sourcePaths "src"
buildType "debug" {
buildOptions "debugMode" "debugInfo"
}
buildType "unittest" {
buildOptions "debugMode" "debugInfo" "unittests"
}
buildType "release" {
buildOptions "releaseMode" "inline" "optimize"
}
buildType "release-nobounds" {
buildOptions "releaseMode" "inline" "noBoundsCheck" "optimize"
}
buildType "release-debug" {
buildOptions "releaseMode" "debugInfo" "inline" "optimize"
}
toolchainRequirements dmd=">=2.105.0" ldc=">=1.35.0" gdc=">=9.3.0"
subPackage {
name "example1"
targetType "executable"
targetPath "build"
sourceFiles "examples/example1.d"
libs "gc"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
preBuildCommands "zig build -Doptimize=ReleaseSafe -Dartifact_dub -Dbuild_examples=false"
}
subPackage {
name "example2"
targetType "executable"
targetPath "build"
sourceFiles "examples/example2.d"
libs "gc"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
preBuildCommands "zig build -Doptimize=ReleaseSafe -Dartifact_dub -Dbuild_examples=false"
}
subPackage {
name "example3"
targetType "executable"
targetPath "build"
sourceFiles "examples/example3.d"
libs "gc"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
preBuildCommands "zig build -Doptimize=ReleaseSafe -Dartifact_dub -Dbuild_examples=false"
}
// subPackage {
// name "example4"
// targetType "executable"
// targetPath "build"
// sourceFiles "examples/example4.d"
// libs "gccpp" "gc" "example4"
// lflags "-Lzig-out/lib" platform="posix"
// lflags "/LIBPATH:zig-out/lib" platform="windows"
// preBuildCommands "zig build -Doptimize=ReleaseSafe -Dartifact_dub -Dbuild_examples=false"
// }