@@ -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 = [
@@ -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)
@@ -76,6 +76,7 @@ if libudev.found()
])
endif
+python.find_installation(modules: 'yaml')
gen_controls = files('gen-controls.py')
control_sources = []
Libcamera runs a few python scripts during build, which contain python module dependencies that should be checked. Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar> --- include/libcamera/meson.build | 1 + meson.build | 2 ++ src/libcamera/meson.build | 1 + 3 files changed, 4 insertions(+)