[libcamera-devel] [PATCH 9/9] libcamera: Add a check for the yaml module

Ricardo Ribalda ricardo at ribalda.com
Wed Sep 23 17:15:22 CEST 2020


Yaml is not installed by default, so it needs to be checked during
configuration for its presence.

At this point we are aiming for meson_version >= 0.47, and the python
module detection has been introduced in 0.51, so the fix is added in a
comment under FIXME.

Signed-off-by: Ricardo Ribalda <ricardo at ribalda.com>
---
 src/libcamera/meson.build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index 0e6ecf5..43a5fde 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -77,6 +77,9 @@ if libudev.found()
     ])
 endif
 
+#FIXME to be added if we force meson version >= 0.51.0
+#py = import('python').find_installation('python3', modules : ['yaml'])
+
 gen_controls = files('gen-controls.py')
 
 control_sources = []
-- 
2.28.0



More information about the libcamera-devel mailing list