xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-graphics/lvgl/lv-lib-png_8.0.2.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# SPDX-FileCopyrightText: Huawei Inc.
2#
3# SPDX-License-Identifier: MIT
4
5HOMEPAGE = "https://docs.lvgl.io"
6SUMMARY = "PNG decoder for LVGL"
7DESCRIPTION = "Allow the use of PNG images in LVGL. This implementation uses lodepng"
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=d6fc0df890c5270ef045981b516bb8f2"
10
11SRC_URI = "git://github.com/lvgl/lv_lib_png;destsuffix=${S};protocol=https;nobranch=1"
12SRCREV = "bf1531afe07c9f861107559e29ab8a2d83e4715a"
13
14# because of lvgl dependency
15REQUIRED_DISTRO_FEATURES = "wayland"
16
17DEPENDS += "lvgl"
18
19EXTRA_OECMAKE += "-DLIB_INSTALL_DIR=${BASELIB}"
20
21inherit cmake
22inherit features_check
23
24TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1"
25TARGET_CFLAGS += "-I${RECIPE_SYSROOT}/${includedir}/lvgl"
26
27FILES:${PN}-dev = "\
28    ${includedir}/lvgl/lv_lib_png/ \
29    "
30