mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 02:20:30 +01:00
meson: point users to disabled documentation when dot/doxygen is missing
Especially dot is hard to find for some users, so provide the solution to their problems right there in the error message. And because users are likely to just copy/paste, remove the disable-libwacom option. Save them from themselves... Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4ff5f02d9c
commit
e5cc1131b2
2 changed files with 13 additions and 3 deletions
|
|
@ -28,9 +28,12 @@ $> sudo udevadm hwdb --update
|
|||
|
||||
Additional options may also be specified. For example:
|
||||
@code
|
||||
$> meson --prefix=/usr -Ddocumentation=false -Dlibwacom=false builddir/
|
||||
$> meson --prefix=/usr -Ddocumentation=false builddir/
|
||||
@endcode
|
||||
|
||||
We recommend that users disable the documentation, it's not usually required
|
||||
for testing and reduces the number of dependencies needed.
|
||||
|
||||
The ```prefix``` or other options can be changed later with the
|
||||
```mesonconf``` command. For example:
|
||||
@code
|
||||
|
|
|
|||
11
meson.build
11
meson.build
|
|
@ -254,7 +254,15 @@ meson.add_install_script('src/libinput-restore-selinux-context.sh',
|
|||
############ documentation ############
|
||||
|
||||
if get_option('documentation')
|
||||
doxygen = find_program('doxygen')
|
||||
doxygen = find_program('doxygen', required : false)
|
||||
if not doxygen.found()
|
||||
error('Program "doxygen" not found or not executable. Try building with -Ddocumentation=false')
|
||||
endif
|
||||
dot = find_program('dot', required : false)
|
||||
if not dot.found()
|
||||
error('Program "dot" not found or not executable. Try building with -Ddocumentation=false')
|
||||
endif
|
||||
|
||||
doxygen_version_cmd = run_command(doxygen.path(), '--version')
|
||||
if doxygen_version_cmd.returncode() != 0
|
||||
error('Command "doxygen --version" failed.')
|
||||
|
|
@ -263,7 +271,6 @@ if get_option('documentation')
|
|||
if doxygen_version.version_compare('< 1.8.3')
|
||||
error('doxygen needs to be at least version 1.8.3 (have @0@)'.format(doxygen_version))
|
||||
endif
|
||||
dot = find_program('dot')
|
||||
grep = find_program('grep')
|
||||
dot_version_cmd = run_command(dot.path(), '-V')
|
||||
if dot_version_cmd.returncode() != 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue