-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
62 lines (51 loc) · 1.57 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
[env]
EXTENSION_NAME = "coden"
[tasks.install_x32]
command = "rustup"
args = ["toolchain", "install", "stable-i686-pc-windows-msvc"]
[tasks.build_x64_debug]
install_crate = false
command = "cargo"
args = ["+stable-x86_64-pc-windows-msvc", "build"]
[tasks.build_x64_release]
install_crate = false
command = "cargo"
args = ["+stable-x86_64-pc-windows-msvc", "build", "--release"]
[tasks.build_x32_debug]
install_crate = false
command = "cargo"
args = ["+stable-i686-pc-windows-msvc", "build", "--target", "i686-pc-windows-msvc"]
dependencies = ["install_x32"]
[tasks.build_x32_release]
install_crate = false
command = "cargo"
args = ["+stable-i686-pc-windows-msvc", "build", "--release", "--target", "i686-pc-windows-msvc"]
dependencies = ["install_x32"]
[tasks.move_x64_debug]
script_runner = "@shell"
script = '''
cp target/debug/${EXTENSION_NAME}.dll ${EXTENSION_NAME}_x64.dll
'''
dependencies = ["build_x64_debug"]
[tasks.move_x64_release]
script_runner = "@shell"
script = '''
cp target/release/${EXTENSION_NAME}.dll ${EXTENSION_NAME}_x64.dll
'''
dependencies = ["build_x64_release"]
[tasks.move_x32_debug]
script_runner = "@shell"
script = '''
cp target/i686-pc-windows-msvc/debug/${EXTENSION_NAME}.dll ${EXTENSION_NAME}.dll
'''
dependencies = ["build_x32_debug"]
[tasks.move_x32_release]
script_runner = "@shell"
script = '''
cp target/i686-pc-windows-msvc/release/${EXTENSION_NAME}.dll ${EXTENSION_NAME}.dll
'''
dependencies = ["build_x32_release"]
[tasks.debug]
dependencies = ["move_x32_debug", "move_x64_debug"]
[tasks.release]
dependencies = ["move_x32_release", "move_x64_release"]