chore(svg): LV_USE_SVG: document and enforce dependency on LV_USE_VECTOR_GRAPHIC (#7120)
This commit is contained in:
@@ -907,7 +907,8 @@
|
|||||||
/** Use external LZ4 library */
|
/** Use external LZ4 library */
|
||||||
#define LV_USE_LZ4_EXTERNAL 0
|
#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 0
|
||||||
#define LV_USE_SVG_ANIMATION 0
|
#define LV_USE_SVG_ANIMATION 0
|
||||||
#define LV_USE_SVG_DEBUG 0
|
#define LV_USE_SVG_DEBUG 0
|
||||||
|
|||||||
@@ -11,7 +11,11 @@
|
|||||||
*********************/
|
*********************/
|
||||||
#include "../../lv_conf_internal.h"
|
#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 "lv_svg.h"
|
||||||
#include "../../misc/lv_types.h"
|
#include "../../misc/lv_types.h"
|
||||||
#include "../../draw/lv_draw_vector_private.h"
|
#include "../../draw/lv_draw_vector_private.h"
|
||||||
|
|||||||
@@ -2900,7 +2900,8 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*SVG library*/
|
/*SVG library
|
||||||
|
* - Requires `LV_USE_VECTOR_GRAPHIC = 1` */
|
||||||
#ifndef LV_USE_SVG
|
#ifndef LV_USE_SVG
|
||||||
#ifdef CONFIG_LV_USE_SVG
|
#ifdef CONFIG_LV_USE_SVG
|
||||||
#define LV_USE_SVG CONFIG_LV_USE_SVG
|
#define LV_USE_SVG CONFIG_LV_USE_SVG
|
||||||
|
|||||||
Reference in New Issue
Block a user