MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / main

Function main

rust_package/brainflow/build.rs:130–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130fn main() {
131 #[cfg(feature = "generate_binding")]
132 generate_binding();
133
134 let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
135 let lib_out_path = Path::new(&out_path);
136
137 let lib_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
138 let lib_path = Path::new(&lib_path).join("lib");
139
140 let mut options = fs_extra::dir::CopyOptions::new();
141 options.overwrite = true;
142 options.copy_inside = true;
143 fs_extra::dir::copy(lib_path, lib_out_path, &options).unwrap();
144
145 println!("cargo:rustc-link-search=native={}/lib", out_path.display());
146 println!("cargo:rustc-link-lib=dylib=BoardController");
147 println!("cargo:rustc-link-lib=dylib=DataHandler");
148 println!("cargo:rustc-link-lib=dylib=MLModule");
149}

Callers

nothing calls this directly

Calls 1

generate_bindingFunction · 0.85

Tested by

no test coverage detected