add rgb check and example
This commit is contained in:
12
examples/embassy-rgb-check/build.rs
Normal file
12
examples/embassy-rgb-check/build.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
// main: tell Cargo to rerun when memory.x changes and add the shared link path.
|
||||
// Input: none.
|
||||
// Output: build script side effects only.
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=../../memory.x");
|
||||
println!(
|
||||
"cargo:rustc-link-search={}",
|
||||
std::path::PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap())
|
||||
.join("../..")
|
||||
.display()
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user