-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
117 lines (91 loc) · 2.28 KB
/
Makefile.toml
File metadata and controls
117 lines (91 loc) · 2.28 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
[config]
skip_core_tasks = true
default_to_workspace = false
unstable_features = ["CTRL_C_HANDLING"]
# Scripts
[tasks.rle-encode]
extend = "script-rs"
env.SCRIPT = "rle-encode"
[tasks.rle-decode]
extend = "script-rs"
env.SCRIPT = "rle-decode"
[tasks.font-gen]
extend = "script-rs"
env.SCRIPT = "font-gen"
[tasks.gif-gen]
extend = "script-rs"
env.SCRIPT = "gif-gen"
[tasks.numbers]
extend = "script-rs"
env.SCRIPT = "numbers"
[tasks.plots]
extend = "script-py"
env.SCRIPT = "plots"
[tasks.perf-probe-rs]
extend = "script-rs"
env.SCRIPT = "perf-probe-rs"
# Testing
[tasks.test]
dependencies = ["build-assets"]
command = "cargo"
args = ["test", "--workspace", "--exclude", "iepass", "--exclude", "iepass-calib", "${@}"]
[tasks.test-carts]
cwd = "./p8rs-tests"
command = "cargo"
args = ["test", "${@}"]
[tasks.test-ci]
dependencies = ["build-assets"]
command = "cargo"
args = ["test", "--workspace", "--exclude", "iepass", "--exclude", "iepass-calib", "--exclude", "p8rs-tests", "${@}"]
# Running
[tasks.run]
dependencies = ["build-assets"]
command = "cargo"
args = ["run", "--package", "iepass-emu", "${@}"]
[tasks.flash]
dependencies = ["build-assets"]
cwd = "./iepass"
env.RUSTUP_TOOLCHAIN = "esp"
command = "cargo"
args = ["run", "${@}"]
[tasks.flash-calib]
dependencies = ["build-assets"]
cwd = "./iepass-calib"
env.RUSTUP_TOOLCHAIN = "esp"
command = "cargo"
args = ["run", "${@}"]
# Build
[tasks.build]
dependencies = ["build-assets", "build-iepass", "build-calib"]
command = "cargo"
args = ["build", "--workspace", "--exclude", "iepass", "--exclude", "iepass-calib", "${@}"]
[tasks.build-assets]
cwd = "./assets"
command = "cargo"
args = ["make", "build", "${@}"]
[tasks.build-iepass]
cwd = "./iepass"
env.RUSTUP_TOOLCHAIN = "esp"
command = "cargo"
args = ["build", "${@}"]
[tasks.build-calib]
cwd = "./iepass-calib"
env.RUSTUP_TOOLCHAIN = "esp"
command = "cargo"
args = ["build", "${@}"]
# Clean Up
[tasks.clean]
dependencies = ["clean-assets"]
command = "git"
args = ["clean", "-Xdff", "--exclude=!.idea", "${@}"]
[tasks.clean-assets]
cwd = "./assets"
command = "cargo"
args = ["make", "clean", "${@}"]
# Abstract
[tasks.script-rs]
command = "cargo"
args = ["run", "--package", "scripts", "--bin", "${SCRIPT}", "--", "${@}"]
[tasks.script-py]
command = "python"
args = ["scripts/${SCRIPT}.py", "${@}"]