From 7952d0a2e6a94fac9cffc2b012d03978681f8192 Mon Sep 17 00:00:00 2001 From: Stanislav Ravas Date: Mon, 20 May 2024 15:22:52 +0200 Subject: [PATCH] sys/build: honor LVGL_INCLUDE even w/o drivers feature In real-world scenarios it's usually requried to pass more include paths to lvgl then cargo/bindgen does by default. --- lvgl-sys/build.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/lvgl-sys/build.rs b/lvgl-sys/build.rs index 06fd7592..ae64969d 100644 --- a/lvgl-sys/build.rs +++ b/lvgl-sys/build.rs @@ -49,7 +49,6 @@ fn main() { // Some basic defaults; SDL2 is the only driver enabled in the provided // driver config by default - #[cfg(feature = "drivers")] let incl_extra = env::var("LVGL_INCLUDE").unwrap_or("/usr/include,/usr/local/include".to_string()); #[cfg(feature = "drivers")] @@ -151,7 +150,6 @@ fn main() { cfg.include(&timer_shim); #[cfg(feature = "drivers")] cfg.include(&drivers); - #[cfg(feature = "drivers")] cfg.includes(incl_extra.split(',')); cfg.compile("lvgl");