fix(draw_vector): fix build break when thorvg disabled

```
lvgl/demos/lv_demos.c:74:37: error: ‘lv_demo_vector_graphic’ undeclared here (not in a function)
   74 |     { "vector_graphic", .entry_cb = lv_demo_vector_graphic },
      |                                     ^~~~~~~~~~~~~~~~~~~~~

/usr/bin/ld: lib/liblvgl.a(lv_draw_sw.c.o): in function `execute_drawing':
lvgl/src/draw/sw/lv_draw_sw.c:338: undefined reference to `lv_draw_sw_vector'
```

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
pengyiqiang
2023-12-18 12:02:30 +08:00
parent 3ececbfc93
commit 63953a0717
3 changed files with 3 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ extern "C" {
#include "multilang/lv_demo_multilang.h"
#endif
#if LV_USE_DEMO_VECTOR_GRAPHIC && LV_USE_VECTOR_GRAPHIC && (LV_USE_THORVG_INTERNAL || LV_USE_THORVG_EXTERNAL)
#if LV_USE_DEMO_VECTOR_GRAPHIC && LV_USE_VECTOR_GRAPHIC
#include "vector_graphic/lv_demo_vector_graphic.h"
#endif