blob: 0049bbe2374d3c7c3204f29090919756d8c815ed [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001# SPDX-FileCopyrightText: Huawei Inc.
Andrew Geissler595f6302022-01-24 19:11:47 +00002#
Andrew Geisslereff27472021-10-29 15:35:00 -05003# SPDX-License-Identifier: MIT
4
Andrew Geisslereff27472021-10-29 15:35:00 -05005HOMEPAGE = "https://docs.lvgl.io"
6SUMMARY = "PNG decoder for LVGL"
7DESCRIPTION = "Allow the use of PNG images in LVGL. This implementation uses lodepng"
Andrew Geissler595f6302022-01-24 19:11:47 +00008LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=d6fc0df890c5270ef045981b516bb8f2"
10
Andrew Geissler5082cc72023-09-11 08:41:39 -040011SRC_URI = "git://github.com/lvgl/lv_lib_png;;protocol=https;branch=master"
Andrew Geissler595f6302022-01-24 19:11:47 +000012SRCREV = "bf1531afe07c9f861107559e29ab8a2d83e4715a"
Andrew Geisslereff27472021-10-29 15:35:00 -050013
Patrick Williams8e7b46e2023-05-01 14:19:06 -050014S = "${WORKDIR}/git"
15
Andrew Geisslereff27472021-10-29 15:35:00 -050016# because of lvgl dependency
17REQUIRED_DISTRO_FEATURES = "wayland"
18
19DEPENDS += "lvgl"
20
Patrick Williams8e7b46e2023-05-01 14:19:06 -050021EXTRA_OECMAKE += "-DLIB_INSTALL_DIR=${baselib}"
Andrew Geissler9aee5002022-03-30 16:27:02 +000022
Andrew Geisslereff27472021-10-29 15:35:00 -050023inherit cmake
24inherit features_check
25
26TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1"
Patrick Williams8e7b46e2023-05-01 14:19:06 -050027TARGET_CFLAGS += "-I${STAGING_INCDIR}/lvgl"
Andrew Geisslereff27472021-10-29 15:35:00 -050028
29FILES:${PN}-dev = "\
30 ${includedir}/lvgl/lv_lib_png/ \
31 "