mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 14:59:44 +03:00
Currently, modifying `controls.py` does not make those build targets dirty that use a script that includes it (e.g. `gen-controls.py`) because meson has no knowledge of this dependency. Add `depend_files` to each `custom_target()` invocation to fix this. Ideally it would be possible to attach this dependency to `gen_controls`, `gen_gst_controls`, etc. objects themselves, so that repetition is avoided, but this does not seem possible at the moment. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Acked-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
21 lines
606 B
Meson
21 lines
606 B
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
## Code generation
|
|
|
|
py_build_env = environment()
|
|
# \todo Investigate usage of PYTHONPYCACHEPREFIX for Python >= 3.8
|
|
py_build_env.set('PYTHONDONTWRITEBYTECODE', '1')
|
|
py_build_env.prepend('PYTHONPATH', meson.current_source_dir())
|
|
|
|
py_modules += ['jinja2', 'yaml']
|
|
|
|
gen_controls = files('gen-controls.py')
|
|
gen_formats = files('gen-formats.py')
|
|
gen_gst_controls = files('gen-gst-controls.py')
|
|
gen_header = files('gen-header.sh')
|
|
gen_ipa_pub_key = files('gen-ipa-pub-key.py')
|
|
gen_tracepoints = files('gen-tp-header.py')
|
|
|
|
py_mod_controls = files('controls.py')
|
|
|
|
subdir('ipc')
|