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 | |
| 11 | SRC_URI = "git://github.com/lvgl/lv_lib_png;destsuffix=${S};protocol=https;nobranch=1" |
| 12 | SRCREV = "bf1531afe07c9f861107559e29ab8a2d83e4715a" |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 13 | |
| 14 | # because of lvgl dependency |
| 15 | REQUIRED_DISTRO_FEATURES = "wayland" |
| 16 | |
| 17 | DEPENDS += "lvgl" |
| 18 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 19 | EXTRA_OECMAKE += "-DLIB_INSTALL_DIR=${BASELIB}" |
| 20 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 21 | inherit cmake |
| 22 | inherit features_check |
| 23 | |
| 24 | TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1" |
| 25 | TARGET_CFLAGS += "-I${RECIPE_SYSROOT}/${includedir}/lvgl" |
| 26 | |
| 27 | FILES:${PN}-dev = "\ |
| 28 | ${includedir}/lvgl/lv_lib_png/ \ |
| 29 | " |