-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
38 lines (31 loc) · 1.14 KB
/
Makefile.toml
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
[env]
EMMAKEN_CFLAGS = "-s ERROR_ON_UNDEFINED_SYMBOLS=0 -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=33554432 -sEXTRA_EXPORTED_RUNTIME_METHODS=[ccall,cwrap,callback] -s ASSERTIONS=1 -s SAFE_HEAP=1"
[tasks.build]
clear = true
dependencies = ['prebuild']
command = "cargo"
args = ["build", "--tests", "--target", "wasm32-unknown-emscripten"]
[tasks.deploy]
dependencies = ["ci-flow"]
command = "cargo"
args = ["web", "deploy", "--use-system-emscripten"]
[tasks.docs]
dependencies = ["prebuild"]
command = "cargo"
args = ["doc", "--target", "wasm32-unknown-emscripten", "--bins", "--document-private-items"]
[tasks.expand]
command = "cargo"
args = ["expand", "--target", "wasm32-unknown-emscripten", ">", "output.rs"]
[tasks.prebuild]
condition = { files_not_exist = ["${CARGO_MAKE_WORKING_DIRECTORY}/target/duckdb.wasm", "${CARGO_MAKE_WORKING_DIRECTORY}/target/duckdb.hpp"] }
script_runner = "@rust"
script = { file = "setup.rs" }
[tasks.start]
dependencies = ["prebuild"]
command = "cargo"
args = ["web", "start"]
[tasks.test]
clear = true
dependencies = ['build']
command = "cargo"
args = ["web", "test", "--nodejs", "--use-system-emscripten", "--", "--nocapture"]