-
Notifications
You must be signed in to change notification settings - Fork 21
/
dub.sdl
50 lines (40 loc) · 1.2 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
name "sdlang-d"
description "Parse/Generate SDLang (Simple Declarative Language - cleaner than JSON/XML)"
homepage "http://github.com/Abscissa/SDLang-D"
authors "Nick Sabalausky"
license "zlib/libpng"
copyright "©2012-2018 Nick Sabalausky"
sourcePaths "src"
importPaths "src"
buildRequirements "allowWarnings"
dependency "taggedalgebraic" version=">=0.10.2 <0.12.0-0"
// Run with: dub
// Or with: dub build && bin/sdlang
configuration "cli" {
targetType "executable"
targetPath "bin/"
targetName "sdlang"
versions "sdlangCliApp"
}
configuration "library" {
targetType "library"
}
// Run with: dub test -c unittest-builtin
configuration "unittest-builtin" {
targetType "executable"
targetPath "bin/"
targetName "sdlang-unittest-builtin"
versions "sdlangUsingBuiltinTestRunner" "sdlangTrace"
buildOptions "unittests" // DUB Issue #950
}
// Run with: dub test
configuration "unittest" {
targetType "executable"
targetPath "bin/"
targetName "sdlang-unittest"
buildOptions "unittests" // DUB Issue #950
dependency "unit-threaded" version=">=0.6.28 <0.8.0-0"
preBuildCommands "dub run unit-threaded -c gen_ut_main -- -f bin/ut.d"
mainSourceFile "bin/ut.d"
versions "sdlangUsingUnitThreaded" "sdlangTrace"
}