diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-08-08 17:30:35 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-08-16 00:00:23 +0300 |
commit | a5f12d2eb35a2fa57a4383869b5e616c3ce1e2ae (patch) | |
tree | 4b2815368bddf7803d596de2e85064ae89e72c64 /src/apps/qcam/assets/feathericons/rotate-ccw.svg | |
parent | 50c92cc7e2924009ecab3e4004448b01d687707c (diff) |
meson: utils: Provide environment for Python scripts
Python scripts run as part of the build process need to take a few
actions specific to the environment in which they operate. One of those
is disabling the Python bytecode cache, to avoid writing .pyc files to
the source tree. This is done manually in the IPC generate.py and
parser.py scripts.
The current implementation is not ideal because it hardcodes in the
scripts information related to the envirdoc_install_dir = join_paths(get_option('datadir'), 'doc',
'libcamera-@0@'.format(libcamera_version))
#
# Doxygen
#
doxygen = find_program('doxygen', required : false)
if doxygen.found()
cdata = configuration_data()
cdata.set('VERSION', 'v@0@'.format(libcamera_git_version))
cdata.set('TOP_SRCDIR', meson.source_root())
cdata.set('TOP_BUILDDIR', meson.build_root())
doxyfile = configure_file(input : 'Doxyfile.in',
output : 'Doxyfile',
configuration : cdata)
custom_target('doxygen',
input : [
doxyfile,
libcamera_api,
libcamera_ipa_api,
libcamera_headers,
libcamera_sources,
libipa_headers,
libipa_sources,
],
output : 'api-html',
command : [doxygen, doxyfile],
install : true,
install_dir : do0 files changed, 0 insertions, 0 deletions