optee-teec-sys 0.0.1

Native bindings to the libteec library.
Documentation
1
2
3
4
5
6
7
8
9
use std::env;
use std::path::Path;

fn main() {
    let optee_client_dir = env::var("OPTEE_CLIENT_DIR").unwrap_or("../../optee/optee_client".to_string());
    let search_path = Path::new(&optee_client_dir).join("out/export/usr/lib");
    println!("cargo:rustc-link-search={}", search_path.display());
    println!("cargo:rustc-link-lib=static=teec");
}