-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
87 lines (74 loc) · 1.56 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
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
[config]
default_to_workspace = false
skip_core_tasks = true
[env]
TARGET_DIR = "${PWD}/res"
POA_TOKEN_WASM = "${TARGET_DIR}/defuse_poa_token.wasm"
[tasks.default]
alias = "build"
[tasks.clippy]
dependencies = ["build-poa-token"]
command = "cargo"
args = ["clippy", "--workspace", "--all-targets"]
[tasks.build]
dependencies = ["build-defuse", "build-poa-factory", "contract-stats"]
[tasks.build-defuse]
command = "cargo"
args = [
"near",
"build",
"non-reproducible-wasm",
"--manifest-path",
"./defuse/Cargo.toml",
"--features",
"abi,contract",
"--out-dir",
"${TARGET_DIR}",
"--no-embed-abi",
]
[tasks.build-poa-factory]
dependencies = ["build-poa-token"]
command = "cargo"
args = [
"near",
"build",
"non-reproducible-wasm",
"--manifest-path",
"./poa-factory/Cargo.toml",
"--features",
"contract",
"--out-dir",
"${TARGET_DIR}",
"--no-embed-abi",
]
[tasks.build-poa-token]
command = "cargo"
args = [
"near",
"build",
"non-reproducible-wasm",
"--manifest-path",
"./poa-token/Cargo.toml",
"--features",
"contract",
"--out-dir",
"${TARGET_DIR}",
"--no-embed-abi",
]
[tasks.test]
alias = "tests"
[tasks.tests]
dependencies = ["build"]
run_task = "run-tests"
[tasks.run-tests]
command = "cargo"
args = ["test", "--workspace", "--all-targets", "${@}"]
[tasks.clean]
dependencies = ["rm-contracts"]
command = "cargo"
args = ["clean"]
[tasks.rm-contracts]
script = "rm -rf ${TARGET_DIR}"
[tasks.contract-stats]
category = "Tools"
script = "cd ${TARGET_DIR} && du -ah *.wasm"