-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
51 lines (39 loc) · 903 Bytes
/
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
[env]
CRATE = "xbox-demo-rs"
[tasks.default]
alias = "demo"
[tasks.nxdk]
command = "make"
args = ["${NXDK_DIR}/Makefile", "NXDK_ONLY=y"]
[tasks.demo]
dependencies = ["nxdk", "cargo", "bin", "cxbe", "output", "generate-iso"]
[tasks.cargo]
command = "cargo"
args = ["build", "--release"]
[tasks.bin]
command = "mkdir"
args = ["-p", "bin"]
[tasks.output]
command = "mkdir"
args = ["-p", "output"]
[tasks.cxbe]
command = "${NXDK_DIR}/tools/cxbe/cxbe"
args = [
"target/i386-xbox-win32/release/${CRATE}.exe",
"-OUT:bin/default.xbe",
"-TITLE:${CRATE}",
]
[tasks.generate-iso]
command = "xdvdfs"
args = ["pack", "bin", "output/${CRATE}.iso"]
[tasks.clean]
dependencies = ["clean-cargo", "clean-bin", "clean-output"]
[tasks.clean-cargo]
command = "cargo"
args = ["clean"]
[tasks.clean-bin]
command = "rm"
args = ["-rf", "bin"]
[tasks.clean-output]
command = "rm"
args = ["-rf", "output"]