Wykres commitów

24 Commity (master)

Autor SHA1 Wiadomość Data
John Tsiombikas 36ec926d68 fix various minor build compatibility issues
- improve configure compatibility with bourne /bin/sh
 - fix build issues with non-gcc compilers
 - fix build on IRIX 6.2 with MIPSpro
2025-04-04 10:33:00 +02:00
John Tsiombikas 251cf549e4 fixed configure mistake from the last commit: mis-typed search path 2024-05-22 20:10:17 +03:00
John Tsiombikas 92e7f9c67b improve X11 header/lib path search during build 2024-05-22 19:47:54 +03:00
John Tsiombikas 15e6848716 build on IRIX 2023-04-02 04:53:11 +03:00
John Tsiombikas e2c809ee36 configure: added --cfgdir= option to change the default config file path 2022-01-29 11:40:33 +02:00
Stephen Hurd d0469c5fb6 Add -I/usr/local/include to cpp flags
On FreeBSD, X11 headers are in /usr/local/include/X11, not
/usr/include/X11.  since -I/usr/local/include is added to CFLAGS
in Makefile.in, the test should also include that.

This allows FreeBSD to properly test XInput2 and XTest headers.
2022-01-28 13:56:34 -05:00
John Tsiombikas c370884e65 configure script improvements:
- provide feedback for dependency checking
  - warn about building without xtest support
  - eliminate redundant check_header invocations for the same file

Closes github issue #50
2022-01-23 09:16:20 +02:00
John Tsiombikas 80e1eab670 XTEST improvements
- test for presence of the XTest.h header file in configure and
   conditionally compile XTEST support
 - check for availability of the XTEST extension when connecting to the
   X server, and fallback to the old XSendEvent code if it's not
   available.
 - fix formatting and code style issues with the original patch
2021-06-24 21:32:17 +03:00
Gaël Écorchard d79a2e36d0 Use XTestFakeKeyEvent to send keys
Using XTestFakeKeyEvent rather than XSendEvent makes Shift, Control and
Alt working. The Escape key was working also with XSendEvent. Other keys
were not tested.
2021-06-24 21:11:54 +03:00
Stéphan Kochen d6a25d5c3f
Fix Darwin build 2021-05-18 14:03:11 +02:00
John Tsiombikas d3a3aa017a Fixed bug in configure script which failed to detect and set the version
string, when executed outside of the git working directory. Closes
github issue #29
2020-12-01 22:23:17 +02:00
John Tsiombikas 407416d8f3 changed the environment variables used by configure to set add_cflags
and add_ldflags to the makefile, to CFLAGS and LDFLAGS, which is much
more conventional and predictable. This only affects the configure
script, the Makefile itself still expects user-specified CFLAGS and
LDFLAGS as add_cflags and add_ldflags, but it's preferable to set those
during configure so it doesn't matter.
2020-02-01 22:21:15 +02:00
John Tsiombikas 04574d0ed0 replaced the svn $rev$ substitution with git describe falling back to git rev-parse HEAD 2018-08-21 05:46:28 +03:00
John Tsiombikas cd7e0576e5 trying to remove devices from Xinput
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@187 ef983eb1-d774-4af8-acfd-baaf7b16a646
2015-02-12 04:17:13 +00:00
John Tsiombikas e6b41b7666 starting preliminary work on macosx port
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@146 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-17 03:56:12 +00:00
John Tsiombikas 301c691fe1 - added -L/usr/X11/lib to the generated X link line in configure
- fixed a couple of annoying warnings in dummy_usb.c
- in spnavd.c I forgot to include string.h
- fixed a typo in xdetect_freebsd.c and made it compile on MacOSX too


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@145 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-16 13:01:20 +00:00
John Tsiombikas 3b5d37fb34 Code cleanup.
- separated hotplug functionality from device driver for USB devices
- factored out common code to minimize redundancy for different platforms (linux/freebsd)
- created an internal "device" data type to allow handling both USB and serial devices
  transparently without conditions everywhere.

Also fixed a minor performance bug. If there is no device plugged in, the repeat interval is ignored.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@139 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-08 03:18:17 +00:00
John Tsiombikas cfd07dfdd4 preliminary freebsd support, only serial at the moment.
implemented xdetect_freebsd with kqueue events.



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@120 ef983eb1-d774-4af8-acfd-baaf7b16a646
2011-10-05 02:05:18 +00:00
John Tsiombikas f6a10f2786 - fixed configure script to disregard appended "-whatever" substrings in the kernel version.
- added -fno-strict-aliasing to the makefiles



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@95 ef983eb1-d774-4af8-acfd-baaf7b16a646
2010-01-26 01:32:08 +00:00
John Tsiombikas 4805edd983 - make the use of NETLINK_KOBJECT_UEVENT for hotplug events optional
(conditionally compiled). The configure script autodetects whether hotplug
  should be enabled by default or not, based on the output of uname. The user
  can override that decision with --enable-hotplug and --disable-hotplug.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@92 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-08-19 03:40:39 +00:00
John Tsiombikas fc771d996c changed configure to accept auto svn revision strings as version numbers
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@88 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-07-24 01:17:36 +00:00
John Tsiombikas d5ec2140e5 - added X server auto detection
- added forgotten GPL notices to the new files



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@87 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-07-24 01:04:12 +00:00
John Tsiombikas 23c52605e3 - removed init script installation from spacenavd's install target, added
message to the user instead.

Applied Hans Meine's patches:
- allow build dir != source dir
- install into /lib64 if /lib64 exists
  (modified that one to use uname -m in the configure script, debian seems to
  have a lib64 even on 32bit systems)
- display X11 connection closing in verbose mode, too (not only init)



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@47 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-08-14 02:10:34 +00:00
John Tsiombikas b91b2cdf15 added a configure script
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@30 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-09 07:25:15 +00:00