mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-18 16:55:16 +00:00
Simplify Monero build script
This commit is contained in:
parent
3c98e85c0a
commit
79f39c4433
1 changed files with 18 additions and 42 deletions
|
@ -43,48 +43,24 @@ fn main() {
|
|||
&env::consts::DLL_EXTENSION
|
||||
)
|
||||
).exists() {
|
||||
if !Command::new("cp").args(&[
|
||||
&format!(
|
||||
"c/monero/src/crypto/{}cncrypto.{}",
|
||||
&env::consts::DLL_PREFIX,
|
||||
&env::consts::DLL_EXTENSION
|
||||
),
|
||||
out_dir
|
||||
]).status().unwrap().success() {
|
||||
panic!("Failed to cp cncrypto");
|
||||
}
|
||||
|
||||
if !Command::new("cp").args(&[
|
||||
&format!(
|
||||
"c/monero/src/device/{}device.{}",
|
||||
&env::consts::DLL_PREFIX,
|
||||
&env::consts::DLL_EXTENSION
|
||||
),
|
||||
out_dir
|
||||
]).status().unwrap().success() {
|
||||
panic!("Failed to cp device");
|
||||
}
|
||||
|
||||
if !Command::new("cp").args(&[
|
||||
&format!(
|
||||
"c/monero/src/ringct/{}ringct_basic.{}",
|
||||
&env::consts::DLL_PREFIX,
|
||||
&env::consts::DLL_EXTENSION
|
||||
),
|
||||
out_dir
|
||||
]).status().unwrap().success() {
|
||||
panic!("Failed to cp ringct_basic");
|
||||
}
|
||||
|
||||
if !Command::new("cp").args(&[
|
||||
&format!(
|
||||
"c/monero/src/ringct/{}ringct.{}",
|
||||
&env::consts::DLL_PREFIX,
|
||||
&env::consts::DLL_EXTENSION
|
||||
),
|
||||
out_dir
|
||||
]).status().unwrap().success() {
|
||||
panic!("Failed to cp ringct");
|
||||
for (folder, lib) in [
|
||||
("crypto", "cncrypto"),
|
||||
("device", "device"),
|
||||
("ringct", "ringct_basic"),
|
||||
("ringct", "ringct")
|
||||
] {
|
||||
if !Command::new("cp").args(&[
|
||||
&format!(
|
||||
"c/monero/src/{}/{}{}.{}",
|
||||
folder,
|
||||
&env::consts::DLL_PREFIX,
|
||||
lib,
|
||||
&env::consts::DLL_EXTENSION
|
||||
),
|
||||
out_dir
|
||||
]).status().unwrap().success() {
|
||||
panic!("Failed to cp {}", lib);
|
||||
}
|
||||
}
|
||||
|
||||
println!("cargo:rerun-if-changed=c/wrapper.c");
|
||||
|
|
Loading…
Reference in a new issue