xfree86: input: add mouse driver build

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-16 16:19:16 +01:00
parent 42409a5cc4
commit cd298be5f6
3 changed files with 47 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
if get_option('xf86-input-inputtest')
subdir('inputtest')
endif
if get_option('xf86-input-mouse')
subdir('mouse')
endif

View File

@@ -0,0 +1,37 @@
mouse_drv_srcs = [
'src/mouse.c',
'src/pnp.c'
]
if host_machine.system() in [ 'netbsd', 'dragonfly', 'freebsd', 'openbsd' ]
mouse_drv_srcs += [ 'src/bsd_mouse.c' ]
elif host_machine.system() in [ 'linux' ]
mouse_drv_srcs += [ 'src/lnx_mouse.c' ]
elif host_machine.system() in [ 'sunos' ]
mouse_drv_srcs += [ 'src/sun_mouse.c' ]
elif host_machine.system() in [ 'hurd' ]
mouse_drv_srcs += [ 'src/hurd_mouse.c' ]
else
error('unsupported OS: '+host_machine.system())
endif
shared_module(
'mouse_drv',
mouse_drv_srcs,
name_prefix: '',
include_directories: [inc, xorg_inc, 'include'],
c_args: xorg_c_args,
dependencies: [common_dep],
install: true,
install_dir: join_paths(module_abi_dir, 'input'),
link_with: xserver_exec,
)
install_man(configure_file(
input: 'man/mousedrv.man',
output: 'mousedrv.4',
configuration: manpage_config,
))

View File

@@ -170,3 +170,9 @@ option('test_rendercheck_triangles', type: 'boolean', value: false,
description: 'testsuite: run rendercheck triangles tests (might fail on Xephyr)')
option('test_xephyr_gles', type: 'boolean', value: true,
description: 'testsuite: run gles2/gles3 tests on Xephyr (might fail w/o DRI)')
# xfree86 drivers
option('xf86-input-inputtest', type: 'boolean', value: true,
description: 'Test input driver support on Xorg')
option('xf86-input-mouse', type: 'boolean', value: true,
description: 'Simple mouse driver')