Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: Huawei Inc. |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 2 | # |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 3 | # SPDX-License-Identifier: MIT |
| 4 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 5 | HOMEPAGE = "https://docs.lvgl.io" |
| 6 | SUMMARY = "PNG decoder for LVGL" |
| 7 | DESCRIPTION = "Allow the use of PNG images in LVGL. This implementation uses lodepng" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 8 | LICENSE = "MIT" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d6fc0df890c5270ef045981b516bb8f2" |
| 10 | |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 11 | SRC_URI = "git://github.com/lvgl/lv_lib_png;;protocol=https;branch=master" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 12 | SRCREV = "bf1531afe07c9f861107559e29ab8a2d83e4715a" |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 13 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 14 | S = "${WORKDIR}/git" |
| 15 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 16 | # because of lvgl dependency |
| 17 | REQUIRED_DISTRO_FEATURES = "wayland" |
| 18 | |
| 19 | DEPENDS += "lvgl" |
| 20 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 21 | EXTRA_OECMAKE += "-DLIB_INSTALL_DIR=${baselib}" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 22 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 23 | inherit cmake |
| 24 | inherit features_check |
| 25 | |
| 26 | TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1" |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 27 | TARGET_CFLAGS += "-I${STAGING_INCDIR}/lvgl" |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 28 | |
| 29 | FILES:${PN}-dev = "\ |
| 30 | ${includedir}/lvgl/lv_lib_png/ \ |
| 31 | " |