tmp: creating specific modules for 8 channels & 16 channels
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user