summaryrefslogtreecommitdiffstats
path: root/vendor/openssl-sys/build/find_vendored.rs
blob: c92b2bd39b9e857a9f650d2c66545f426b5e9a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use openssl_src;
use std::path::PathBuf;

pub fn get_openssl(_target: &str) -> (Vec<PathBuf>, PathBuf) {
    let artifacts = openssl_src::Build::new().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(),
    )
}