-
Notifications
You must be signed in to change notification settings - Fork 4
/
dub.sdl
40 lines (33 loc) · 819 Bytes
/
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
name "ddhx"
description "Hexadecimal file viewer"
authors "dd86k"
copyright "Copyright © 2017-2022 dd86k"
license "MIT"
# NOTE: Somehow, the dmd package in the Alpine repo does not contain rdmd.
preBuildCommands "rdmd setup.d version" platform="dmd"
preBuildCommands "ldmd2 -run setup.d version" platform="ldc"
preBuildCommands "gdmd -run setup.d version" platform="gdc"
configuration "default" {
targetType "executable"
mainSourceFile "src/main.d"
}
configuration "trace" {
targetType "executable"
versions "Trace"
mainSourceFile "src/main.d"
}
#
# Debug builds
#
buildType "debugv" {
dflags "-vgc" "-vtls" platform="dmd"
dflags "--vgc" "--vtls" platform="ldc"
}
#
# Tests
#
buildType "input" {
versions "TestInput"
buildOptions "unittests"
sourceFiles "tests/input.d"
}