summaryrefslogtreecommitdiff
path: root/src/py/meson.build
blob: 9228069711be3c5549ebc0fef8229a015b0af4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# SPDX-License-Identifier: CC0-1.0

py3_dep = dependency('python3', required : get_option('pycamera'))
pybind11_dep = dependency('pybind11', required : get_option('pycamera'))

pycamera_enabled = py3_dep.found() and pybind11_dep.found()
if not pycamera_enabled
    subdir_done()
endif

subdir('libcamera')

pycamera_devenv = environment()
pycamera_devenv.prepend('PYTHONPATH', meson.current_build_dir())
meson.add_devenv(pycamera_devenv)