-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdub.sdl
37 lines (32 loc) · 1.34 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
name "spasm"
description "A framework for writing single page applications"
authors "Sebastiaan Koppe"
copyright "Copyright © 2018, Sebastiaan Koppe"
license "MIT"
dependency "stdx-allocator" version="~>3.1.0-beta.2"
dependency "optional" version="~>0.16.0"
#target "library"
subPackage "bootstrap-webpack"
subPackage "webidl"
dflags "-dip1000"
toolchainRequirements ldc=">=1.17.0"
buildRequirements "allowWarnings" # required for ldc 1.16
configuration "library" {
dflags "-mtriple=wasm32-unknown-unknown-wasm" "-betterC" "-fvisibility=hidden"
lflags "-allow-undefined" "--export-table" "--export=domEvent" "--export=allocString" "-export=renderGCStats" "-export=markMemory" "-export=freeUnmarked" "-export=__heap_base"
importPaths "source" "includes"
subConfiguration "stdx-allocator" "wasm"
}
configuration "unittest" {
#targetName "ut"
#targetType "executable"
dependency "unit-threaded" version="*"
sourcePaths "source" "tests/ut"
importPaths "source" "tests/ut"
mainSourceFile "tests/ut/test_main.d"
}
# this configuration only exists to compile spasm on dmd nightly, so to get warnings about druntime breaking changes early on
configuration "dmd" {
dflags "-betterC"
targetType "library"
}