mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-27 11:57:48 +08:00
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:
@@ -1,5 +1,7 @@
|
||||
#include "../../lvgl.h"
|
||||
|
||||
#if LV_BUILD_EXAMPLES
|
||||
|
||||
#ifndef LV_ATTRIBUTE_MEM_ALIGN
|
||||
#define LV_ATTRIBUTE_MEM_ALIGN
|
||||
#endif
|
||||
@@ -67,3 +69,4 @@ const lv_img_dsc_t img_hand = {
|
||||
.data = img_hand_map,
|
||||
};
|
||||
|
||||
#endif /* LV_BUILD_EXAMPLES */
|
||||
|
||||
Reference in New Issue
Block a user