ACE3/extension/Makefile.toml
BrettMayson 043b3907fe
Extensions - Rust (#9015)
Co-authored-by: Pepijn Holster <pgaholster@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: LorenLuke <LukeLLL@aol.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-08-17 12:50:38 -03:00

60 lines
1.4 KiB
TOML

[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/ace.dll ../ace_x64.dll
'''
dependencies = ["build_x64_debug"]
[tasks.move_x64_release]
script_runner = "@shell"
script = '''
cp ../target/release/ace.dll ../ace_x64.dll
'''
dependencies = ["build_x64_release"]
[tasks.move_x32_debug]
script_runner = "@shell"
script = '''
cp ../target/i686-pc-windows-msvc/debug/ace.dll ../ace.dll
'''
dependencies = ["build_x32_debug"]
[tasks.move_x32_release]
script_runner = "@shell"
script = '''
cp ../target/i686-pc-windows-msvc/release/ace.dll ../ace.dll
'''
dependencies = ["build_x32_release"]
[tasks.debug]
dependencies = ["move_x32_debug", "move_x64_debug"]
[tasks.release]
dependencies = ["move_x32_release", "move_x64_release"]