Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame^] | 1 | SUMMARY = "YANG data modeling language library" |
| 2 | DESCRIPTION = "libyang is a YANG data modelling language parser and toolkit written (and providing API) in C." |
| 3 | HOMEPAGE = "https://github.com/CESNET/libyang" |
| 4 | SECTION = "libs" |
| 5 | LICENSE = "BSD-3-Clause" |
| 6 | |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f3916d7d8d42a6508d0ea418cfff10ad" |
| 8 | |
| 9 | SRCREV = "69d9fff65abb58beb0bb6aa9ecacd572ca1dfc56" |
| 10 | |
| 11 | SRC_URI = "git://github.com/CESNET/libyang.git \ |
| 12 | file://libyang-skip-pcre2-config-add-stdint-h.patch \ |
| 13 | file://run-ptest \ |
| 14 | " |
| 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | COMPATIBLE_HOST_riscv32 = "null" |
| 19 | COMPATIBLE_HOST_armv5 = "null" |
| 20 | COMPATIBLE_HOST_riscv64 = "null" |
| 21 | |
| 22 | # Main dependencies |
| 23 | inherit cmake pkgconfig lib_package binconfig-disabled ptest |
| 24 | DEPENDS = "libpcre2" |
| 25 | DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'cmocka', '', d)}" |
| 26 | BINCONFIG = "${bindir}/pcre2-config" |
| 27 | |
| 28 | # Ptest dependencies |
| 29 | RDEPENDS_${PN}-ptest += "valgrind" |
| 30 | |
| 31 | EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release" |
| 32 | EXTRA_OECMAKE += " ${@bb.utils.contains('PTEST_ENABLED', '1', '-DENABLE_BUILD_TESTS=ON', '', d)}" |
| 33 | |
| 34 | do_install_ptest () { |
| 35 | cp -fR ${B}/tests/ ${D}${PTEST_PATH}/ |
| 36 | } |
| 37 | |