Skip to content
Snippets Groups Projects
Commit c2567921 authored by philippe coval's avatar philippe coval :speech_balloon: Committed by Andrei Gherzan
Browse files

lvgl: Support external wayland config

This part should be reverted once xdg-shell is supported in lvgl

Forwarded: https://git.ostc-eu.org/distro/oniro/-/merge_requests/355


Signed-off-by: default avatarPhilippe Coval <philippe.coval@huawei.com>
parent bcb0dcfb
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,9 @@ inherit features_check ...@@ -21,6 +21,9 @@ inherit features_check
S = "${WORKDIR}/${PN}-${PV}" S = "${WORKDIR}/${PN}-${PV}"
LVGL_CONFIG_WAYLAND_HOR_RES ?= "480"
LVGL_CONFIG_WAYLAND_VER_RES ?= "320"
EXTRA_OECMAKE += "-Dinstall:BOOL=ON" EXTRA_OECMAKE += "-Dinstall:BOOL=ON"
TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1" TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1"
...@@ -33,6 +36,8 @@ do_configure_append() { ...@@ -33,6 +36,8 @@ do_configure_append() {
[ -r "${S}/lv_drv_conf.h" ] \ [ -r "${S}/lv_drv_conf.h" ] \
|| sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \ || sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \
-e "s|# define USE_WAYLAND 0|# define USE_WAYLAND 1|g" \ -e "s|# define USE_WAYLAND 0|# define USE_WAYLAND 1|g" \
-e "s|\(^ *# *define *WAYLAND_HOR_RES *\).*|\1${LVGL_CONFIG_WAYLAND_HOR_RES}|g" \
-e "s|\(^ *# *define *WAYLAND_VER_RES *\).*|\1${LVGL_CONFIG_WAYLAND_VER_RES}|g" \
< "${S}/lv_drv_conf_template.h" > "${S}/lv_drv_conf.h" < "${S}/lv_drv_conf_template.h" > "${S}/lv_drv_conf.h"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment