mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
7d5d43a1c0
The project currently is set to meson version 0.49.0 but uses features the install argument for configure_file was introduced with meson 0.50.0. This patch removes the unused parameter fixes the following warnings: ``` WARNING: Project targeting '>=0.49.0' but tried to use feature introduced in '0.50.0': install arg in configure_file WARNING: Project specifies a minimum meson_version '>=0.49.0' but uses features which were added in newer versions: * 0.50.0: {'install arg in configure_file'} WARNING: Deprecated features used: * 0.50.0: {'install arg in configure_file'} ``` In an initial patch I just bumped the meson version, but this introduced problems in our Debian CI. An increase in the meson version would be possible by using a meson distribution from pip, as it's done for old distros in xrdesktop.
31 lines
929 B
Meson
31 lines
929 B
Meson
# Copyright 2018-2019, Collabora, Ltd.
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
doxyconf = configuration_data()
|
|
doxyconf.set('SRCDIR', meson.source_root())
|
|
doxyconf.set('BUILDDIR', meson.build_root())
|
|
doxyconf.set('CURBUILDDIR', meson.current_build_dir())
|
|
|
|
if get_option('doxygen-warn-undocumented') and get_option('doxygen-extract-all')
|
|
error('doxygen-warn-undocumented and doxygen-extract-all are mutually incompatible')
|
|
endif
|
|
|
|
if get_option('doxygen-warn-undocumented')
|
|
doxyconf.set('DOXYGEN_WARN_UNDOCUMENTED', 'YES')
|
|
else
|
|
doxyconf.set('DOXYGEN_WARN_UNDOCUMENTED', 'NO')
|
|
endif
|
|
|
|
if get_option('doxygen-extract-all')
|
|
doxyconf.set('DOXYGEN_EXTRACT_ALL', 'YES')
|
|
else
|
|
doxyconf.set('DOXYGEN_EXTRACT_ALL', 'NO')
|
|
endif
|
|
|
|
doxyfile = configure_file(input: 'Doxyfile.in',
|
|
output: 'Doxyfile', configuration: doxyconf)
|
|
|
|
html = custom_target('docs',
|
|
input: doxyfile, output: 'html', command: [doxygen, doxyfile],
|
|
build_by_default: true)
|