mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 17:59:59 +00:00
b0caf1fb82
In the actual form, the python bindings are never built since the recipe does not depend on python, thus the cmake script does not detect python and does not build the bindings. Add a summy PACKAGECONFIG for the python bindings to make it simpler to disable. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
46 lines
1.5 KiB
BlitzBasic
46 lines
1.5 KiB
BlitzBasic
SUMMARY = "Library for interfacing with IIO devices"
|
|
HOMEPAGE = "https://wiki.analog.com/resources/tools-software/linux-software/libiio"
|
|
SECTION = "libs"
|
|
LICENSE = "LGPLv2.1+"
|
|
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"
|
|
|
|
SRCREV = "fa82974d8bd1fded78e630ab71a7ded1b11d0e33"
|
|
PV = "0.14+git${SRCPV}"
|
|
|
|
SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit cmake pythonnative systemd
|
|
|
|
DEPENDS = " \
|
|
flex-native bison-native libaio \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
|
|
"
|
|
|
|
EXTRA_OECMAKE = " \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DUDEV_RULES_INSTALL_DIR=${nonarch_base_libdir}/udev/rules.d \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
|
|
"
|
|
|
|
PACKAGECONFIG ??= "USB_BACKEND NETWORK_BACKEND PYTHON_BINDINGS"
|
|
|
|
PACKAGECONFIG[USB_BACKEND] = "-DWITH_USB_BACKEND=ON,-DWITH_USB_BACKEND=OFF,libusb1,libxml2"
|
|
PACKAGECONFIG[NETWORK_BACKEND] = "-DWITH_NETWORK_BACKEND=ON,-DWITH_NETWORK_BACKEND=OFF,libxml2"
|
|
PACKAGECONFIG[PYTHON_BINDINGS] = ",,python"
|
|
|
|
PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python"
|
|
|
|
RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold"
|
|
|
|
FILES_${PN}-iiod = " \
|
|
${sbindir}/iiod \
|
|
${systemd_system_unitdir}/iiod.service \
|
|
"
|
|
FILES_${PN}-tests = "${bindir}"
|
|
FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
|
|
|
|
SYSTEMD_PACKAGES = "${PN}-iiod"
|
|
SYSTEMD_SERVICE_${PN}-iiod = "iiod.service"
|