feat(conf) automatically enable LV_LVGL_H_INCLUDE_SIMPLE if lvgl.h can be included

This commit is contained in:
Gabor Kiss-Vamosi
2021-04-19 19:04:46 +02:00
parent 75f40e590c
commit a995695cdf
2 changed files with 10 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ fout.write(
# define LV_CONF_INCLUDE_SIMPLE # define LV_CONF_INCLUDE_SIMPLE
# endif # endif
# endif # endif
# if __has_include("lvgl.h")
# ifndef LV_LVGL_H_INCLUDE_SIMPLE
# define LV_LVGL_H_INCLUDE_SIMPLE
# endif
# endif
#endif #endif
/*If lv_conf.h is not skipped include it*/ /*If lv_conf.h is not skipped include it*/

View File

@@ -25,6 +25,11 @@
# define LV_CONF_INCLUDE_SIMPLE # define LV_CONF_INCLUDE_SIMPLE
# endif # endif
# endif # endif
# if __has_include("lvgl.h")
# ifndef LV_LVGL_H_INCLUDE_SIMPLE
# define LV_LVGL_H_INCLUDE_SIMPLE
# endif
# endif
#endif #endif
/*If lv_conf.h is not skipped include it*/ /*If lv_conf.h is not skipped include it*/