mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-20 17:47:14 +00:00
lvgl: Add recipe for Lightweight Graphics Library
Note, this requires lv-drivers for wayland rendering.
Change-Id: I920679891d0c7b5079537af77ff4d21094178cce
Forwarded: https://github.com/openembedded/meta-openembedded/pull/447
Relate-to: https://github.com/lvgl/lvgl/issues/2534
Origin: https://git.ostc-eu.org/OSTC/planning/core-os/-/issues/233
Signed-off-by: Philippe Coval <philippe.coval@huawei.com>
(cherry picked from commit 21580d65af)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
42ceb9d961
commit
2c097d9713
@@ -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-239-g7b7bed37d)
|
||||||
|
src_org = "lvgl"
|
||||||
|
SRC_URI = "gitsm://github.com/${src_org}/lvgl;destsuffix=${S};protocol=https;nobranch=1"
|
||||||
|
SRCREV = "7b7bed37d3e937c59ec99fccba58774fbf9f1930"
|
||||||
|
|
||||||
|
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}/"
|
||||||
Reference in New Issue
Block a user