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
|
||||
@@ -232,3 +233,5 @@ const lv_img_dsc_t imgbtn_mid = {
|
||||
.header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA,
|
||||
.data = imgbtn_mid_map,
|
||||
};
|
||||
|
||||
#endif /* LV_BUILD_EXAMPLES */
|
||||
|
||||
Reference in New Issue
Block a user