ahmadtest 0.1.21

just to test rust crates
Documentation

fn main() {
    // Specify the desired library path
    // let library_path = ".";

    // Set the rpath flag to embed the library's location
    // let out_dir = env::var("OUT_DIR").unwrap();
    // println!("cargo:rustc-link-search={}/native={}", out_dir, library_path);
    // println!("cargo:rustc-link-search=native=.");
    // println!("cargo:rustc-link-lib=dylib=LexActivator");

    // println!("cargo:rustc-link-lib=framework=CoreFoundation");
    // println!("cargo:rustc-link-lib=framework=SystemConfiguration");
    // println!("cargo:rustc-link-lib=framework=Security");
    
}

// use std::env;
// use std::path::PathBuf;

// fn main() {
//     // Set the path to the directory containing the static library
//     let library_dir = ".";

//     // Specify the library name (without the lib prefix or file extension)
//     let library_name = "LexActivator";

//     // Set the target directory where the compiled binary will be placed
//     let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
//     let target_dir = out_dir.join("target");
//     let _ = std::fs::create_dir_all(&target_dir);

//     // Link against the static library
//     println!("cargo:rustc-link-search={}", library_dir);
//     println!("cargo:rustc-link-lib=static={}", library_name);

//     // frameworks
//     println!("cargo:rustc-link-lib=framework=CoreFoundation");
//     println!("cargo:rustc-link-lib=framework=Security");
//     println!("cargo:rustc-link-lib=framework=Foundation");


//     // Set the target directory as the place to put the resulting binary
//     println!("cargo:rustc-link-search={}", target_dir.display());
// }