fix(examples) don't compile assets unless needed (#2523)
This wraps the code for the assets under examples/assets in LV_BUILD_EXAMPLES so that it is not compiled when examples are deactivated in lv_conf.h.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "lvgl/lvgl.h"
|
||||
#endif
|
||||
|
||||
#if LV_BUILD_EXAMPLES
|
||||
|
||||
#ifndef LV_ATTRIBUTE_MEM_ALIGN
|
||||
#define LV_ATTRIBUTE_MEM_ALIGN
|
||||
@@ -153,3 +154,4 @@ const lv_img_dsc_t img_star = {
|
||||
.data = img_star_map,
|
||||
};
|
||||
|
||||
#endif /* LV_BUILD_EXAMPLES */
|
||||
|
||||
Reference in New Issue
Block a user