diff options
Diffstat (limited to 'meta-oe/recipes-graphics/lvgl/lv-conf.inc')
-rw-r--r-- | meta-oe/recipes-graphics/lvgl/lv-conf.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index 9186015537..69e42af922 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc | |||
@@ -3,6 +3,7 @@ PACKAGECONFIG ??= "drm" | |||
3 | PACKAGECONFIG[drm] = ",,libdrm" | 3 | PACKAGECONFIG[drm] = ",,libdrm" |
4 | PACKAGECONFIG[fbdev] = ",," | 4 | PACKAGECONFIG[fbdev] = ",," |
5 | PACKAGECONFIG[gridnav] = ",," | 5 | PACKAGECONFIG[gridnav] = ",," |
6 | PACKAGECONFIG[thorvg] = ",," | ||
6 | PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" | 7 | PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" |
7 | 8 | ||
8 | # Add libdrm include if drm is selected in PACKAGECONFIG | 9 | # Add libdrm include if drm is selected in PACKAGECONFIG |
@@ -32,6 +33,16 @@ LVGL_CONFIG_LV_USE_GRIDNAV = "${@bb.utils.contains('PACKAGECONFIG', 'gridnav', ' | |||
32 | 33 | ||
33 | LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" | 34 | LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" |
34 | 35 | ||
36 | LVGL_CONFIG_USE_LOTTIE = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}" | ||
37 | |||
38 | LVGL_CONFIG_USE_VECTOR_GRAPHICS = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}" | ||
39 | |||
40 | LVGL_CONFIG_USE_THORVG_INTERNAL = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}" | ||
41 | |||
42 | LVGL_CONFIG_USE_MATRIX = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}" | ||
43 | |||
44 | LVGL_CONFIG_USE_FLOAT = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}" | ||
45 | |||
35 | DEBUG_BUILD ??= "0" | 46 | DEBUG_BUILD ??= "0" |
36 | 47 | ||
37 | ALLOW_EMPTY:${PN} = "1" | 48 | ALLOW_EMPTY:${PN} = "1" |
@@ -77,5 +88,11 @@ do_configure:append() { | |||
77 | -e "s|^([[:space:]]*#define LV_USE_GRIDNAV[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_GRIDNAV}|" \ | 88 | -e "s|^([[:space:]]*#define LV_USE_GRIDNAV[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_GRIDNAV}|" \ |
78 | -e "s|^([[:space:]]*#define LV_THEME_DEFAULT_DARK[[:space:]]).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|" \ | 89 | -e "s|^([[:space:]]*#define LV_THEME_DEFAULT_DARK[[:space:]]).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|" \ |
79 | \ | 90 | \ |
91 | -e "s|^([[:space:]]*#define LV_USE_VECTOR_GRAPHIC[[:space:]]).*|\1${LVGL_CONFIG_USE_VECTOR_GRAPHICS}|" \ | ||
92 | -e "s|^([[:space:]]*#define LV_USE_THORVG_INTERNAL[[:space:]]).*|\1${LVGL_CONFIG_USE_THORVG_INTERNAL}|" \ | ||
93 | -e "s|^([[:space:]]*#define LV_USE_MATRIX[[:space:]]).*|\1${LVGL_CONFIG_USE_MATRIX}|" \ | ||
94 | -e "s|^([[:space:]]*#define LV_USE_FLOAT[[:space:]]).*|\1${LVGL_CONFIG_USE_FLOAT}|" \ | ||
95 | \ | ||
96 | -e "s|^([[:space:]]*#define LV_USE_LOTTIE[[:space:]]).*|\1${LVGL_CONFIG_USE_LOTTIE}|" \ | ||
80 | -i "${S}/lv_conf.h" | 97 | -i "${S}/lv_conf.h" |
81 | } | 98 | } |