-
-
Notifications
You must be signed in to change notification settings - Fork 701
Expand file tree
/
Copy pathdub.sdl
More file actions
132 lines (114 loc) · 3.02 KB
/
dub.sdl
File metadata and controls
132 lines (114 loc) · 3.02 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name "dmd"
description "The DMD compiler"
authors "Walter Bright"
copyright "Copyright © 1999-2018, The D Language Foundation"
license "BSL-1.0"
toolchainRequirements dub=">=1.29.0" # can use $DUB_EXE etc. in custom commands
targetType "none"
dependency ":frontend" version="*"
subPackage {
name "compiler"
targetType "executable"
targetName "dmd"
sourcePaths "compiler/src/dmd"
importPaths "compiler/src"
stringImportPaths "compiler/src/dmd/res" "."
dflags "-L/STACK:16777216" platform="windows"
dflags "-preview=dip1000"
preGenerateCommands "echo -n /etc > SYSCONFDIR.imp" platform="posix"
}
subPackage {
name "root"
targetType "library"
importPaths "compiler/src"
sourcePaths "compiler/src/dmd/common" "compiler/src/dmd/root"
}
subPackage {
name "lexer"
targetType "library"
importPaths "compiler/src"
sourcePaths
sourceFiles \
"compiler/src/dmd/console.d" \
"compiler/src/dmd/entity.d" \
"compiler/src/dmd/errors.d" \
"compiler/src/dmd/file_manager.d" \
"compiler/src/dmd/globals.d" \
"compiler/src/dmd/id.d" \
"compiler/src/dmd/identifier.d" \
"compiler/src/dmd/lexer.d" \
"compiler/src/dmd/location.d" \
"compiler/src/dmd/sarif.d" \
"compiler/src/dmd/tokens.d" \
"compiler/src/dmd/utils.d" \
"compiler/src/dmd/errorsink.d"
versions \
"CallbackAPI" \
"DMDLIB"
# generate files `generated/dub/{VERSION,SYSCONFDIR.imp}` for string-imports
# by building & running the config.d tool
preGenerateCommands `"$DUB_EXE" "--compiler=$DC" --single "${PACKAGE_DIR}/config.d" -- "${PACKAGE_DIR}/generated/dub" "${PACKAGE_DIR}/VERSION" /etc`
stringImportPaths \
"compiler/src/dmd/res" \
"generated/dub"
dependency "dmd:root" version="*"
}
subPackage {
name "parser"
targetType "library"
importPaths "compiler/src"
sourcePaths
sourceFiles \
"compiler/src/dmd/astbase.d" \
"compiler/src/dmd/parse.d" \
"compiler/src/dmd/visitor/transitive.d" \
"compiler/src/dmd/visitor/permissive.d" \
"compiler/src/dmd/visitor/strict.d"
versions "CallbackAPI"
dependency "dmd:lexer" version="*"
}
subPackage {
name "frontend"
targetType "library"
importPaths "compiler/src"
sourcePaths "compiler/src/dmd"
stringImportPaths "compiler/src/dmd/res"
versions \
"NoBackend" \
"GC" \
"NoMain" \
"MARS" \
"CallbackAPI"
excludedSourceFiles "compiler/src/dmd/backend/*"
excludedSourceFiles "compiler/src/dmd/root/*"
excludedSourceFiles "compiler/src/dmd/common/*"
excludedSourceFiles "compiler/src/dmd/lib/*"
excludedSourceFiles "compiler/src/dmd/irgen/*"
excludedSourceFiles "compiler/src/dmd/{\
astbase,\
console,\
entity,\
errors,\
errorsink,\
file_manager,\
globals,\
id,\
identifier,\
lexer,\
location,\
parse,\
sarif,\
tokens,\
utf,\
utils,\
visitor/permissive,\
visitor/strict,\
visitor/transitive,\
}.d"
excludedSourceFiles "compiler/src/dmd/{\
dmsc,\
eh,\
link,\
}.d"
dependency "dmd:parser" version="*"
}