tmp: creating specific modules for 8 channels & 16 channels

This commit is contained in:
2025-08-17 08:57:05 +00:00
parent 57ace1383b
commit c9ca399e20
23 changed files with 253 additions and 88 deletions
+6 -1
View File
@@ -1,10 +1,15 @@
use std::{env, path::PathBuf};
fn main() {
println!("cargo::rustc-link-search=/workspaces/LightSabre/lightsabre_backend/led_driver/lib");
println!(
"cargo::rustc-link-search=/workspaces/LightSabre/lightsabre_backend/led_driver/lib/bin"
);
// Tell cargo to tell rustc to link the RPiLedBars_drivers and logc libraries.
#[cfg(not(feature = "16channel"))]
println!("cargo:rustc-link-lib=RpiLedBars_drivers_8ch");
#[cfg(feature = "16channel")]
println!("cargo:rustc-link-lib=RpiLedBars_drivers_16ch");
println!("cargo:rustc-link-lib=logc");
// The bindgen::Builder is the main entry point to bindgen, and lets you build up options for the resulting bindings.