diff options
| author | Peter Griffin <peter.griffin@linaro.org> | 2022-02-01 20:52:29 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-02-03 08:44:32 -0800 |
| commit | ea6d967dbe396072b5ba58331bb07252c3c449c4 (patch) | |
| tree | 9f0eb8f72d9ebd8169f091d13e62bd61ca1c8209 | |
| parent | 014835f162456611d868ddc09aa9ece70111c89c (diff) | |
| download | meta-openembedded-ea6d967dbe396072b5ba58331bb07252c3c449c4.tar.gz | |
libcamera: update meson options to build pipeline handlers & cam utility
Enable uvcvideo, simple, and vimc pipeline handlers in libcamera. Without
any pipeline handlers libcamera can't capture any frames.
Also enable cam utility with is a cli utility that can use the library to
capture some frames.
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-multimedia/recipes-multimedia/libcamera/libcamera.bb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb index 82028ecb37..a8d54f08f6 100644 --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera.bb | |||
| @@ -18,7 +18,7 @@ PV = "202105+git${SRCPV}" | |||
| 18 | 18 | ||
| 19 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
| 20 | 20 | ||
| 21 | DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls boost chrpath-native" | 21 | DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls boost chrpath-native libevent" |
| 22 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}" | 22 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}" |
| 23 | 23 | ||
| 24 | PACKAGES =+ "${PN}-gst" | 24 | PACKAGES =+ "${PN}-gst" |
| @@ -26,6 +26,16 @@ PACKAGES =+ "${PN}-gst" | |||
| 26 | PACKAGECONFIG ??= "" | 26 | PACKAGECONFIG ??= "" |
| 27 | PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base" | 27 | PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base" |
| 28 | 28 | ||
| 29 | EXTRA_OEMESON = " \ | ||
| 30 | -Dpipelines=uvcvideo,simple,vimc \ | ||
| 31 | -Dipas=vimc \ | ||
| 32 | -Dv4l2=true \ | ||
| 33 | -Dcam=enabled \ | ||
| 34 | -Dlc-compliance=disabled \ | ||
| 35 | -Dtest=false \ | ||
| 36 | -Ddocumentation=disabled \ | ||
| 37 | " | ||
| 38 | |||
| 29 | RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland qt', 'qtwayland', '', d)}" | 39 | RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland qt', 'qtwayland', '', d)}" |
| 30 | 40 | ||
| 31 | inherit meson pkgconfig python3native | 41 | inherit meson pkgconfig python3native |
| @@ -59,4 +69,6 @@ FILES:${PN} += " ${libdir}/libcamera.so.0.0.0" | |||
| 59 | FILES:${PN}-dev += " ${libdir}/libcamera-base.so" | 69 | FILES:${PN}-dev += " ${libdir}/libcamera-base.so" |
| 60 | FILES:${PN}-dev += " ${libdir}/libcamera-base.so.0" | 70 | FILES:${PN}-dev += " ${libdir}/libcamera-base.so.0" |
| 61 | FILES:${PN} += " ${libdir}/libcamera-base.so.0.0.0" | 71 | FILES:${PN} += " ${libdir}/libcamera-base.so.0.0.0" |
| 72 | FILES:${PN} += " ${libdir}/v4l2-compat.so" | ||
| 62 | FILES:${PN}-gst = "${libdir}/gstreamer-1.0/libgstlibcamera.so" | 73 | FILES:${PN}-gst = "${libdir}/gstreamer-1.0/libgstlibcamera.so" |
| 74 | FILES:${PN} += " ${bindir}/cam" | ||
