summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 7 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')))