mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-03 17:40:34 +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
|
&env::consts::DLL_EXTENSION
|
||||||
)
|
)
|
||||||
).exists() {
|
).exists() {
|
||||||
if !Command::new("cp").args(&[
|
for (folder, lib) in [
|
||||||
&format!(
|
("crypto", "cncrypto"),
|
||||||
"c/monero/src/crypto/{}cncrypto.{}",
|
("device", "device"),
|
||||||
&env::consts::DLL_PREFIX,
|
("ringct", "ringct_basic"),
|
||||||
&env::consts::DLL_EXTENSION
|
("ringct", "ringct")
|
||||||
),
|
] {
|
||||||
out_dir
|
if !Command::new("cp").args(&[
|
||||||
]).status().unwrap().success() {
|
&format!(
|
||||||
panic!("Failed to cp cncrypto");
|
"c/monero/src/{}/{}{}.{}",
|
||||||
}
|
folder,
|
||||||
|
&env::consts::DLL_PREFIX,
|
||||||
if !Command::new("cp").args(&[
|
lib,
|
||||||
&format!(
|
&env::consts::DLL_EXTENSION
|
||||||
"c/monero/src/device/{}device.{}",
|
),
|
||||||
&env::consts::DLL_PREFIX,
|
out_dir
|
||||||
&env::consts::DLL_EXTENSION
|
]).status().unwrap().success() {
|
||||||
),
|
panic!("Failed to cp {}", lib);
|
||||||
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");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("cargo:rerun-if-changed=c/wrapper.c");
|
println!("cargo:rerun-if-changed=c/wrapper.c");
|
||||||
|
|
Loading…
Reference in a new issue