mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
xfree86: input: add mouse driver build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
if get_option('xf86-input-inputtest')
|
||||
subdir('inputtest')
|
||||
endif
|
||||
|
||||
if get_option('xf86-input-mouse')
|
||||
subdir('mouse')
|
||||
endif
|
||||
|
||||
37
hw/xfree86/drivers/input/mouse/meson.build
Normal file
37
hw/xfree86/drivers/input/mouse/meson.build
Normal 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,
|
||||
))
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user