mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
libcamera: Add support for pycamera
Supply a libcamera-pycamera package to allow installing the libcamera python bindings. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -24,10 +24,11 @@ S = "${WORKDIR}/git"
|
||||
DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml"
|
||||
DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}"
|
||||
|
||||
PACKAGES =+ "${PN}-gst"
|
||||
PACKAGES =+ "${PN}-gst ${PN}-pycamera"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base"
|
||||
PACKAGECONFIG[pycamera] = "-Dpycamera=enabled,-Dpycamera=disabled,python3 python3-pybind11"
|
||||
|
||||
LIBCAMERA_PIPELINES ??= "auto"
|
||||
|
||||
@@ -71,6 +72,7 @@ do_package_recalculate_ipa_signatures() {
|
||||
|
||||
FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so"
|
||||
FILES:${PN}-gst = "${libdir}/gstreamer-1.0"
|
||||
FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera"
|
||||
|
||||
# libcamera-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to
|
||||
# both 32 and 64 bit file APIs.
|
||||
|
||||
Reference in New Issue
Block a user