diff --git a/lv_conf_template.h b/lv_conf_template.h index 914189fcd..bb2adeb82 100644 --- a/lv_conf_template.h +++ b/lv_conf_template.h @@ -907,7 +907,8 @@ /** Use external LZ4 library */ #define LV_USE_LZ4_EXTERNAL 0 -/*SVG library*/ +/*SVG library + * - Requires `LV_USE_VECTOR_GRAPHIC = 1` */ #define LV_USE_SVG 0 #define LV_USE_SVG_ANIMATION 0 #define LV_USE_SVG_DEBUG 0 diff --git a/src/libs/svg/lv_svg_render.h b/src/libs/svg/lv_svg_render.h index 135305488..21b3e6d77 100644 --- a/src/libs/svg/lv_svg_render.h +++ b/src/libs/svg/lv_svg_render.h @@ -11,7 +11,11 @@ *********************/ #include "../../lv_conf_internal.h" -#if LV_USE_SVG && LV_USE_VECTOR_GRAPHIC +#if LV_USE_SVG +#if !LV_USE_VECTOR_GRAPHIC + #error "LV_USE_SVG requires LV_USE_VECTOR_GRAPHIC = 1" +#endif + #include "lv_svg.h" #include "../../misc/lv_types.h" #include "../../draw/lv_draw_vector_private.h" diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index 7c66634d1..47f535c8f 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -2900,7 +2900,8 @@ #endif #endif -/*SVG library*/ +/*SVG library + * - Requires `LV_USE_VECTOR_GRAPHIC = 1` */ #ifndef LV_USE_SVG #ifdef CONFIG_LV_USE_SVG #define LV_USE_SVG CONFIG_LV_USE_SVG