-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
53 lines (42 loc) · 1.12 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
[config]
default_to_workspace = false
skip_core_tasks = true
[tasks.check]
dependencies = ["format", "build", "build-unity", "lint", "license"]
[tasks.format]
ignore_errors = true
command = "cargo"
args = ["fmt"]
[tasks.lint]
command = "cargo"
args = ["clippy", "${@}", "--", "-D", "warnings"]
[tasks.build]
command = "cargo"
args = ["build", "--release", "${@}"]
[tasks.build-unity]
dependencies = ["build-unity-main", "build-unity-post"]
[tasks.build-unity-main]
command = "cargo"
args = ["build", "--release", "--features", "unity", "${@}"]
[tasks.build-unity-post]
linux_alias = "build-unity-post-nix"
windows_alias = "build-unity-post-win"
mac_alias = "build-unity-post-nix"
[tasks.build-unity-post-nix]
script_runner = "@shell"
script = '''
cp ./target/release/autd3-simulator target/release/autd3-simulator-unity
'''
[tasks.build-unity-post-win]
script_runner = "@shell"
script = '''
cp ./target/release/autd3-simulator.exe target/release/autd3-simulator-unity.exe
'''
[tasks.update]
command = "cargo"
args = ["update"]
[tasks.license]
cwd = "./tools/license-checker"
command = "cargo"
args = ["run"]
dependencies = ["update"]