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:
Johannes Marbach
2021-09-03 15:01:01 +02:00
committed by GitHub
parent d5b64e1b5d
commit 53b65a7964
16 changed files with 43 additions and 0 deletions

View File

@@ -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 */