[libcamera-devel] [PATCH 2/2] libcamera: meson: Add check on required python modules
Ariel D'Alessandro
ariel at vanguardiasur.com.ar
Tue Apr 14 20:02:29 CEST 2020
Libcamera runs a few python scripts during build, which contain python
module dependencies that should be checked.
Signed-off-by: Ariel D'Alessandro <ariel at vanguardiasur.com.ar>
---
include/libcamera/meson.build | 1 +
meson.build | 2 ++
src/libcamera/meson.build | 1 +
3 files changed, 4 insertions(+)
diff --git a/include/libcamera/meson.build b/include/libcamera/meson.build
index 23c01d3..1a2fc68 100644
--- a/include/libcamera/meson.build
+++ b/include/libcamera/meson.build
@@ -24,6 +24,7 @@ include_dir = join_paths(libcamera_include_dir, 'libcamera')
install_headers(libcamera_api,
subdir : include_dir)
+python.find_installation(modules: 'yaml')
gen_controls = files('../../src/libcamera/gen-controls.py')
control_source_files = [
diff --git a/meson.build b/meson.build
index a2dda79..2b0e035 100644
--- a/meson.build
+++ b/meson.build
@@ -8,6 +8,8 @@ project('libcamera', 'c', 'cpp',
],
license : 'LGPL 2.1+')
+python = import('python')
+
# Generate version information. The libcamera_git_version variable contains the
# full version with git patch count and SHA1 (e.g. 1.2.3+211-c94a24f4), while
# the libcamera_version variable contains the major.minor.patch (e.g. 1.2.3)
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index c502450..757bb78 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -76,6 +76,7 @@ if libudev.found()
])
endif
+python.find_installation(modules: 'yaml')
gen_controls = files('gen-controls.py')
control_sources = []
--
2.25.1
More information about the libcamera-devel
mailing list