chore(svg): LV_USE_SVG: document and enforce dependency on LV_USE_VECTOR_GRAPHIC (#7120)

This commit is contained in:
Peter van Dijk 2024-10-25 09:39:54 +02:00 committed by GitHub
parent 014f328dc9
commit 657915f6b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

View File

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

View File

@ -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"

View File

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