mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 08:00:09 +01:00
meson.build: allow disabling building the various tools
A bit of a niche case but this helps with embedding libevdev as static library when the tools don't matter. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d852e59dd0
commit
1ee2399ba8
2 changed files with 34 additions and 28 deletions
14
meson.build
14
meson.build
|
|
@ -101,34 +101,36 @@ install_man(manpage)
|
|||
|
||||
|
||||
# tools
|
||||
executable('libevdev-events',
|
||||
if not get_option('tools').disabled()
|
||||
executable('libevdev-events',
|
||||
sources: ['tools/libevdev-events.c'],
|
||||
include_directories: [includes_include],
|
||||
dependencies: dep_libevdev,
|
||||
install: false)
|
||||
executable('libevdev-list-codes',
|
||||
executable('libevdev-list-codes',
|
||||
sources: ['tools/libevdev-list-codes.c'],
|
||||
include_directories: [includes_include],
|
||||
dependencies: dep_libevdev,
|
||||
install: false)
|
||||
executable('touchpad-edge-detector',
|
||||
executable('touchpad-edge-detector',
|
||||
sources: ['tools/touchpad-edge-detector.c'],
|
||||
include_directories: [includes_include],
|
||||
dependencies: [dep_libevdev, dep_lm],
|
||||
install: true)
|
||||
executable('mouse-dpi-tool',
|
||||
executable('mouse-dpi-tool',
|
||||
sources: ['tools/mouse-dpi-tool.c'],
|
||||
include_directories: [includes_include],
|
||||
dependencies: dep_libevdev,
|
||||
install: true)
|
||||
executable('libevdev-tweak-device',
|
||||
executable('libevdev-tweak-device',
|
||||
sources: ['tools/libevdev-tweak-device.c'],
|
||||
include_directories: [includes_include],
|
||||
dependencies: dep_libevdev,
|
||||
install: true)
|
||||
install_man('tools/libevdev-tweak-device.1',
|
||||
install_man('tools/libevdev-tweak-device.1',
|
||||
'tools/touchpad-edge-detector.1',
|
||||
'tools/mouse-dpi-tool.1')
|
||||
endif
|
||||
|
||||
# tests
|
||||
dep_check = dependency('check', version: '>= 0.9.9',
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ option('tests',
|
|||
type: 'feature',
|
||||
value: 'enabled',
|
||||
description: 'Build the tests')
|
||||
option('tools',
|
||||
type: 'feature',
|
||||
value: 'enabled',
|
||||
description: 'Build the tools')
|
||||
option('documentation',
|
||||
type: 'feature',
|
||||
value: 'enabled',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue