-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdub.sdl
43 lines (36 loc) · 1.08 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
name "ssc"
description "Source Server Controller"
authors "Benjamin Schaaf"
copyright "Copyright © 2017, Benjamin Schaaf"
license "MIT"
dependency "vibe-d" version="~>0.8.4"
dependency "jsonizer" version="~>0.7"
dependency "base32" version="~>0.1.0"
dependency "supervised" version="~>0.2"
# Make sure we use botan
dependency "vibe-d:tls" version="*"
subConfiguration "vibe-d:tls" "botan"
preBuildCommands "mkdir -p bin"
targetName "bin/ssc"
# Development Environment
configuration "application" {
targetType "executable"
versions "VibeDefaultMain" "development"
}
# Production Environment
configuration "production" {
targetType "executable"
versions "VibeDefaultMain" "production"
releaseMode
}
# Test Environment
configuration "unittest" {
targetType "executable"
mainSourceFile "tmp/ut.d"
targetName "tmp/__test__unittest__"
sourcePaths "source" "tests"
importPaths "source" "tests"
preBuildCommands "dub run unit-threaded -c gen_ut_main -- -f tmp/ut.d"
versions "VibeCustomMain" "unitUnthreaded"
dependency "unit-threaded" version="*"
}