summaryrefslogtreecommitdiff
path: root/hw/xfree86/common
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2018-08-07 16:23:16 -0700
committerAdam Jackson <ajax@redhat.com>2018-08-09 13:42:54 -0400
commit049d2346abee091f18e6f62bcf7331267c2ba656 (patch)
tree50df16386a9933877225443cb328fbbf7dace2c4 /hw/xfree86/common
parent97bd8bc9cb6d910420627760288696e2a0c5d226 (diff)
meson: Make FALLBACK_INPUT_DRIVER configurable in meson.
This makes us match the featureset of autotools, and also fixes the non-Linux default value to match. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw/xfree86/common')
-rw-r--r--hw/xfree86/common/meson.build14
1 files changed, 13 insertions, 1 deletions
diff --git a/hw/xfree86/common/meson.build b/hw/xfree86/common/meson.build
index 514999ff6..3e617dc36 100644
--- a/hw/xfree86/common/meson.build
+++ b/hw/xfree86/common/meson.build
@@ -47,6 +47,15 @@ xorg_sdk_headers = [
'xaarop.h',
]
+fallback_driver = get_option('fallback_input_driver')
+if fallback_driver == 'auto'
+ if host_machine.system() == 'linux'
+ fallback_driver = 'libinput'
+ else
+ fallback_driver = ''
+ endif
+endif
+
if build_dga
srcs_xorg_common += 'xf86DGA.c'
xorg_sdk_headers += 'dgaproc.h'
@@ -87,7 +96,10 @@ xorg_common = static_library('xorg_common',
pciaccess_dep,
libdrm_dep,
],
- c_args: xorg_c_args,
+ c_args: [
+ xorg_c_args,
+ '-DFALLBACK_INPUT_DRIVER="@0@"'.format(fallback_driver)
+ ],
)
install_data(xorg_sdk_headers, install_dir: xorgsdkdir)