Skip to content

Commit

Permalink
lvgl: Add recipe for Lightweight Graphics Library
Browse files Browse the repository at this point in the history
This requires lv-drivers for wayland rendering

Relate-to: lvgl/lvgl#2534
Signed-off-by: Philippe Coval <[email protected]>
Change-Id: I920679891d0c7b5079537af77ff4d21094178cce
  • Loading branch information
rzr committed Oct 5, 2021
1 parent 23dc4f0 commit bac438a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- mode: bitbake; c-basic-offset: 4; indent-tabs-mode: nil -*-

# SPDX-FileCopyrightText: Huawei Inc.
# SPDX-License-Identifier: MIT

# TODO: Pin upstream release (current is v8.0.3-dev-236-ga28f14c3c)
src_org = "lvgl"
SRC_URI = "gitsm://github.com/${src_org}/lvgl;destsuffix=${S};protocol=https;nobranch=1"
SRCREV = "a28f14c3c6be57f78be6cb47ea20e8fd17eb3d2e"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=bf1198c89ae87f043108cea62460b03a"

HOMEPAGE = "https://lvgl.io/"
SUMMARY = "Light and Versatile Graphics Library"
DESCRIPTION = "LVGL is an open-source graphics library providing everything you need to create embedded GUI with easy-to-use graphical elements, beautiful visual effects and low memory footprint."

REQUIRED_DISTRO_FEATURES = "wayland"

inherit cmake
inherit features_check

S = "${WORKDIR}/${PN}-${PV}"

EXTRA_OECMAKE += "-Dinstall:BOOL=ON"


do_configure:prepend() {
[ -r "${S}/lv_conf.h" ] \
|| sed -e "s|#if 0 /*Set it to \"1\" to enable the content*/|#if 1 // Enabled by ${PN}|g" \
< "${S}/lv_conf_template.h" > "${S}/lv_conf.h"
}


FILES:${PN}-dev = "\
${includedir}/${PN}/ \
${includedir}/${PN}/lvgl/ \
"

FILES:${PN}-staticdev = "${libdir}/"

0 comments on commit bac438a

Please sign in to comment.