-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdub.json
43 lines (39 loc) · 1.3 KB
/
dub.json
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": "main",
"description": "WebAssembly + WebGL with D",
"license": "Boost",
"authors": [
"Timur Gafarov"
],
"copyright": "Copyright (c) 2019-2022 Timur Gafarov",
"configurations": [
{
"name": "desktop",
"targetType": "executable",
"dependencies": {
"bindbc-opengl": "~>1.0.0",
"bindbc-sdl": "~>1.0.0",
"dlib": "1.0.0-beta1"
},
"subConfigurations": {
"bindbc-opengl": "dynamicBC",
"bindbc-sdl": "dynamicBC"
},
"versions": [
"SDL_205",
"GL_33",
"GL_KHR_debug"
],
"copyFiles-windows-x86": ["lib/x86/*.dll"],
"copyFiles-windows-x86_64": ["lib/x64/*.dll"],
},
{
"name": "web",
"targetType": "executable",
"dependencies": { },
"dflags": ["-betterC", "-mtriple=wasm32-unknown-unknown-wasm", "-link-internally", "-L-allow-undefined", "-L--export-dynamic"],
"postBuildCommands-windows": ["move main.exe dist/main.wasm"],
"postBuildCommands-posix": ["mv main dist/main.wasm"]
}
]
}