From 7ee9a01d31f3cc50f04f7414eb2a1acad8f7697d Mon Sep 17 00:00:00 2001 From: Philippe Coval <philippe.coval@huawei.com> Date: Thu, 30 Sep 2021 18:25:43 +0200 Subject: [PATCH] lv-lib-png: Add recipe for LVGL for handling PNG format Note that this lib will be part of next lvgl release, meanwhile we build it without touching lvgl default config. Relate-to: https://git.ostc-eu.org/OSTC/planning/core-os/-/issues/233 Relate-to: https://github.com/lvgl/lvgl/issues/2534 Forwarded: https://github.com/openembedded/meta-openembedded/pull/454 Change-Id: I2e467caae8e70577e5c9a93f92efc6588cf3bfa2 Origin: https://github.com/openembedded/meta-openembedded/pull/454/commits/e8b0d89df2219c7d0cff6f4dfcbe4dd29033652e Signed-off-by: Philippe Coval <philippe.coval@huawei.com> --- .../recipes-graphics/lvgl/lv-lib-png_8.0.2.bb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-oniro-staging/recipes-graphics/lvgl/lv-lib-png_8.0.2.bb diff --git a/meta-oniro-staging/recipes-graphics/lvgl/lv-lib-png_8.0.2.bb b/meta-oniro-staging/recipes-graphics/lvgl/lv-lib-png_8.0.2.bb new file mode 100644 index 00000000..ada94230 --- /dev/null +++ b/meta-oniro-staging/recipes-graphics/lvgl/lv-lib-png_8.0.2.bb @@ -0,0 +1,26 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: MIT + +src_org = "lvgl" +SRC_URI = "gitsm://github.com/${src_org}/lv_lib_png;destsuffix=${S};protocol=https;nobranch=1" +SRCREV = "bf1531afe07c9f861107559e29ab8a2d83e4715a" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d6fc0df890c5270ef045981b516bb8f2" + +HOMEPAGE = "https://docs.lvgl.io" +SUMMARY = "PNG decoder for LVGL" +DESCRIPTION = "Allow the use of PNG images in LVGL. This implementation uses lodepng" + +DEPENDS += "lvgl" + +inherit cmake + +TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1" +TARGET_CFLAGS += "-I${RECIPE_SYSROOT}/${includedir}/lvgl" + +FILES:${PN}-dev = "\ + ${includedir}/lvgl/lv_lib_png/ \ + " + +FILES:${PN}-staticdev = "${libdir}/" -- GitLab