chore: add vendor dependencies for kauma build
This commit is contained in:
parent
7c94e5d8fb
commit
067ef6141c
1758 changed files with 398473 additions and 0 deletions
25
vendor/openssl-sys/build/find_vendored.rs
vendored
Normal file
25
vendor/openssl-sys/build/find_vendored.rs
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
use openssl_src;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use super::env;
|
||||
|
||||
pub fn get_openssl(_target: &str) -> (Vec<PathBuf>, PathBuf) {
|
||||
let openssl_config_dir = env("OPENSSL_CONFIG_DIR");
|
||||
|
||||
let mut openssl_src_build = openssl_src::Build::new();
|
||||
if let Some(value) = openssl_config_dir {
|
||||
openssl_src_build.openssl_dir(PathBuf::from(value));
|
||||
}
|
||||
|
||||
let artifacts = openssl_src_build.build();
|
||||
println!("cargo:vendored=1");
|
||||
println!(
|
||||
"cargo:root={}",
|
||||
artifacts.lib_dir().parent().unwrap().display()
|
||||
);
|
||||
|
||||
(
|
||||
vec![artifacts.lib_dir().to_path_buf()],
|
||||
artifacts.include_dir().to_path_buf(),
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue