summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2024-06-05fix FTBS: out-of-tree buildmasterEnrico Weigelt, metux IT consult
/usr/bin/sed -e 's|__BIN_PREFIX__|/usr/local/bin|g' -e 's|__HAL_BIN_PREFIX__|/usr/local/bin|g' < > hal-probe-vmmouse /bin/sh: Syntax error: redirection unexpected (expecting word) *** Error code 2 It seems that BSD make doesn't really support VPATH, like GNU make does. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-vmmouse/-/merge_requests/5>
2024-01-05Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-23tools: Fix declaration of xf86EnableIO()Matt Turner
/usr/include/xorg/xf86_OSproc.h:115:23: error: type of 'xf86EnableIO' does not match original declaration [-Werror=lto-type-mismatch] 115 | extern _X_EXPORT Bool xf86EnableIO(void); | ^ vmmouse_iopl.c:125:6: note: return value type mismatch 125 | bool xf86EnableIO(void) | ^
2015-06-26Add NetBSD/amd64 support for iopl calls.Thomas Klausner
While here, correct AC_DEFINE usage. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
2015-04-08vmmouse: Fix vmmouse_detect build on BSDThomas Hellstrom
Tested with FreeBSD, but changes affect also OpenBSD and NetBSD to fix compiling and linking with the relevant system libraries. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Acked-by: Sinclair Yeh <syeh@vmware.com>
2015-04-07vmmouse: Run vmmouse_detect as an io privileged processThomas Hellstrom
Many distros already include patches to do this in various more or less hackish ways. Since VMware now is about to restrict access to the VMmouse backdoor, let's try to support it officially. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Acked-by: Sinclair Yeh <syeh@vmware.com>
2014-10-08Back off if we detect a vmmouse kernel driver v3Thomas Hellstrom
If a vmmouse kernel driver is active, vmmouse input is handled by the Xorg evdev driver and not by the vmmouse driver, so make sure the vmmouse_detect utility doesn't detect a vmmouse if a kernel driver is active. v2: Change the vmmouse kernel device name, fix comment. v3: Fix up libudev error handling. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
2013-11-28Always include config.h firstJeremy Huddleston Sequoia
This fixes some build warnings about CSRG_BASED being redefined due to incorrect header include ordering. Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2013-09-24"make dist" fails when workstation has no udev packageGaetan Nadon
Unable to create a tar file for the vmmouse package or run distcheck for that matter. In tools, when the dev package is not installed, the makefile code under HAS_UDEV_RULES_DIR is commented out. That leaves $(udev_DATA) empty which causes EXTRA_DIST to be missing a file. The solution is to spell out the file name. The name can never change as the content of the tarball must be the same for everyone creating a tar file from git, regardless of their workstation configuration. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2012-08-07Fetch the udev dir from udev.pc instead of guessing based on prefixPeter Hutterer
Reviewed-by: Gaetan Nadon<memsize@videotron.ca> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2012-05-10Revert "Adjust the kernel name in the udev file."Zack Rusin
This reverts commit 189dc266a66485d48303acbc1a4fbe4642c75e9f. It seems that for some reason the device routing is breaking with this. Possibly related to Win7 x64 hosts because it's not reproducible on GNU/Linux hosts. Semantially we'd still like to match only on mouse kernel but for the time being this seems to cause more problems than it solves. Hence the revert.
2012-03-08Adjust the kernel name in the udev file.Zack Rusin
Some distros (most notable OpenSuSE) are unable to match on the 'event' devices, since we should be using 'mouse' kernel anyway (because that's what the 'udevadm info' reports) switch to it in the rules file. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2010-10-21make: remove duplicate definition of EXTRA_DISTGaetan Nadon
autoreconf -vfi produces this output: tools/Makefile.am:59: EXTRA_DIST multiply defined in condition TRUE ... tools/Makefile.am:36: ... `EXTRA_DIST' previously defined here Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-10-21tools make: use Autoconf provided $(AM_V_GEN)$(SED)Gaetan Nadon
Enables silent rule and use platform appropriate version of sed. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-08-10Fix distcheckAdam Jackson
2010-07-09Improve Solaris compatibility of hal-probe-vmmouse generation ruleAlan Coopersmith
Use $(SED) from AC_PROG_SED to ensure a good version of sed is found Use explicit input file name instead of $< to workaround Solaris make issue with $< in explicit rules. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-25config: git ignore recently added 69-xorg-vmmouse.rulesGaetan Nadon
Was added in 1d1c0514158abb66388ee4eb44764d201203a863 Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-04-19Only match against event[0-9] in udev rulesJakob Bornecrantz
It looks like the udev rule was matched against two devices which caused the driver to be loaded twice. We shouldn't match against the other device because it will very seldom send bogus events. Some of the bug this caused was buttons getting stuck.
2010-04-17Don't clobber CFLAGSJulien Cristau
CFLAGS is a user variable, don't set it from configure.
2010-04-08Add InputClass support.Michel Dänzer
The InputClass can match the tag "vmmouse". A sample xorg.conf.d snippet is provided to try and make sure the driver will be loaded automatically in a compatible VM also if the X server uses udev instead of HAL. The configure script tries to determine if and where it makes sense to install the udev rule and xorg.conf.d snippet but allows overriding both. Thanks to Timo Aaltonen for the udev rules file and Dan Nicholson and Simon Thum for review and suggestions for improvement.
2010-04-08Improve make rule for hal-probe-vmmouse.Michel Dänzer
Make sure changes to hal-probe-vmmouse.in get picked up automatically and simplify the way it's passed to sed. Thanks to Dan Nicholson for the suggestion.
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-05-111) Fix bug where motion notify events were being sent with every button event.xf86-input-vmmouse-12.6.4Shelley Gong
2) Classify relative vs. absolute packets individually rather than from a global flag. 3) Compile with older distros. 4) Bump for 12.6.4 Release. Signed-off-by: Philip Langdale <philipl@fido2.homeip.net>
2008-12-22Fix make distcheck allowing custom build directories.Peter Hutterer
2008-10-23Remove call to iopl(). It's not portable and isn't necessary.Philip Langdale
2008-10-23Switch hal-probe-vmmouse to /bin/sh and add Copyright statement.Philip Langdale
2008-10-23Add HAL integration to support input hot plug.Philip Langdale
* vmmouse_detect: A simple program that detects whether a vmmouse device is present. * hal-probe-vmmouse: A HAL callout script that uses vmmouse_detect and overrides input.x11_driver. * 11-x11-vmmouse.fdi: fdi descriptor that adds the callout for PS/2 mice. Additional 'configure' variables have been added to allow for overriding HAL paths, although this shouldn't usually be necessary.