diff --git a/hw/xfree86/drivers/input/meson.build b/hw/xfree86/drivers/input/meson.build index 6b56dfbcf5..5bfa9299c3 100644 --- a/hw/xfree86/drivers/input/meson.build +++ b/hw/xfree86/drivers/input/meson.build @@ -1,3 +1,7 @@ if get_option('xf86-input-inputtest') subdir('inputtest') endif + +if get_option('xf86-input-mouse') + subdir('mouse') +endif diff --git a/hw/xfree86/drivers/input/mouse/meson.build b/hw/xfree86/drivers/input/mouse/meson.build new file mode 100644 index 0000000000..9989ee87d0 --- /dev/null +++ b/hw/xfree86/drivers/input/mouse/meson.build @@ -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, +)) diff --git a/meson_options.txt b/meson_options.txt index a375ac7835..a6dcedb017 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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')