diff options
-rw-r--r-- | meson.build | 7 | ||||
-rw-r--r-- | utils/meson.build | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 020ea93c..dd88eead 100644 --- a/meson.build +++ b/meson.build @@ -101,6 +101,9 @@ add_project_link_arguments(cpp_arguments, language : 'cpp') libcamera_includes = include_directories('include') +# Sub-directories fill py_modules with their dependencies. +py_modules = [] + # Utilities are parsed first to provide support for other components. subdir('utils') @@ -143,5 +146,9 @@ pkg_mod.generate(libraries : libcamera, description : 'Complex Camera Support Library', subdirs : 'libcamera') +# Check for python installation and modules. +py_mod = import('python') +py_mod.find_installation('python3', modules: py_modules) + ## Summarise Configurations message('Enabled pipelines: ' + ', '.join(get_option('pipelines'))) diff --git a/utils/meson.build b/utils/meson.build index 456bf7f8..3d83b975 100644 --- a/utils/meson.build +++ b/utils/meson.build @@ -3,6 +3,7 @@ subdir('ipu3') ## Code generation +py_modules += ['yaml'] gen_controls = files('gen-controls.py') gen_formats = files('gen-formats.py') gen_header = files('gen-header.sh') |