2018-03-26 21:07:11 -07:00
|
|
|
use std::env;
|
|
|
|
|
|
|
|
fn main() {
|
2018-04-18 19:34:57 -07:00
|
|
|
println!("cargo:rustc-link-search=native=.");
|
2018-03-26 21:07:11 -07:00
|
|
|
if !env::var("CARGO_FEATURE_CUDA").is_err() {
|
|
|
|
println!("cargo:rustc-link-lib=static=cuda_verify_ed25519");
|
|
|
|
println!("cargo:rustc-link-search=native=/usr/local/cuda/lib64");
|
|
|
|
println!("cargo:rustc-link-lib=dylib=cudart");
|
|
|
|
println!("cargo:rustc-link-lib=dylib=cuda");
|
|
|
|
println!("cargo:rustc-link-lib=dylib=cudadevrt");
|
|
|
|
}
|
2018-04-18 19:34:57 -07:00
|
|
|
if !env::var("CARGO_FEATURE_ERASURE").is_err() {
|
|
|
|
println!("cargo:rustc-link-lib=dylib=Jerasure");
|
2018-06-23 02:15:38 -07:00
|
|
|
println!("cargo:rustc-link-lib=dylib=gf_complete");
|
2018-04-18 19:34:57 -07:00
|
|
|
}
|
2018-03-26 21:07:11 -07:00
|
|
|
}
|