-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.toml
70 lines (54 loc) · 1.99 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
env_scripts = [
"""
#!@duckscript
if is_empty ${GW2_PATH}
gw2_path = set "C:/Program Files/Guild Wars 2"
steam_path = set "C:/Program Files (x86)/Steam/steamapps/common/Guild Wars 2"
if is_path_exists ${steam_path}
gw2_path = set ${steam_path}
end
set_env GW2_PATH ${gw2_path}
end
"""
]
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS = ["reffect"]
INSTALL_PATH = "${GW2_PATH}/addons"
[tasks.build]
command = "cargo"
args = ["build"]
[tasks.build-release]
command = "cargo"
args = ["build", "--release"]
[tasks.copy-release]
script = "cp \"${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/release/${CARGO_MAKE_CRATE_NAME}.dll\" \"${INSTALL_PATH}\""
script_runner = "@shell"
[tasks.copy-release-update]
script = "cp \"${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/release/${CARGO_MAKE_CRATE_NAME}.dll\" \"${INSTALL_PATH}/${CARGO_MAKE_CRATE_NAME}.dll.update\""
script_runner = "@shell"
[tasks.copy-release-pdb]
script = "cp \"${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/release/${CARGO_MAKE_CRATE_NAME}.pdb\" \"${INSTALL_PATH}"
script_runner = "@shell"
[tasks.copy-debug]
script = "cp \"${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/debug/${CARGO_MAKE_CRATE_NAME}.dll\" \"${INSTALL_PATH}/${CARGO_MAKE_CRATE_NAME}.dll.update\""
script_runner = "@shell"
[tasks.copy-debug-pdb]
script = "cp \"${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/debug/${CARGO_MAKE_CRATE_NAME}.pdb\" \"${INSTALL_PATH}"
script_runner = "@shell"
[tasks.remove]
script = "rm \"${INSTALL_PATH}/${CARGO_MAKE_CRATE_NAME}.dll\""
script_runner = "@shell"
[tasks.install]
run_task = { name = ["build-release", "copy-release"] }
[tasks.install-examples]
script = "cp \"${CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY}/examples/*\" \"${INSTALL_PATH}/reffect/packs\""
script_runner = "@shell"
[tasks.uninstall]
alias = "remove"
[tasks.dev-release]
run_task = { name = ["build-release", "copy-release-update", "copy-release-pdb"] }
watch = true
[tasks.dev]
run_task = { name = ["build", "copy-debug", "copy-debug-pdb"] }
watch = true