diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | INSTALL | 32 | ||||
| -rw-r--r-- | Makefile.am | 2 | ||||
| -rw-r--r-- | configure.ac | 4 | ||||
| -rw-r--r-- | src/Makefile.am | 5 |
5 files changed, 40 insertions, 4 deletions
| @@ -22,7 +22,6 @@ configure | |||
| 22 | configure.scan | 22 | configure.scan |
| 23 | depcomp | 23 | depcomp |
| 24 | .deps/ | 24 | .deps/ |
| 25 | INSTALL | ||
| 26 | install-sh | 25 | install-sh |
| 27 | .libs/ | 26 | .libs/ |
| 28 | libtool | 27 | libtool |
| @@ -0,0 +1,32 @@ | |||
| 1 | grail - Gesture Recognition And Instantiation Library | ||
| 2 | |||
| 3 | To build, you need to have the autoconf, libtool and mtdev-dev packages | ||
| 4 | installed. Then, do | ||
| 5 | |||
| 6 | ./autogen.sh | ||
| 7 | ./configure | ||
| 8 | make | ||
| 9 | |||
| 10 | To test the touch properties of an MT device at /dev/input/eventX, do | ||
| 11 | |||
| 12 | sudo ./test/grail-touch /dev/input/eventX | ||
| 13 | |||
| 14 | You should be able to see touch events in the terminal. After five | ||
| 15 | seconds of inactivity, the program exits. | ||
| 16 | |||
| 17 | To test gestures, do | ||
| 18 | |||
| 19 | sudo ./test/grail-gesture 0xffffffff /dev/input/eventX | ||
| 20 | |||
| 21 | You should be able to see gesture events in the terminal. After five | ||
| 22 | seconds of inactivity, the program exits. | ||
| 23 | |||
| 24 | To install grail, do | ||
| 25 | |||
| 26 | sudo make install | ||
| 27 | |||
| 28 | By default, grail installs to /usr/local. To change, use the --prefix | ||
| 29 | configure option. | ||
| 30 | |||
| 31 | Enjoy, | ||
| 32 | Henrik | ||
diff --git a/Makefile.am b/Makefile.am index f21509a..a2ad4d6 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -9,6 +9,6 @@ INCLUDES = $(top_srcdir)/include/ | |||
| 9 | INSTALL: | 9 | INSTALL: |
| 10 | $(INSTALL_CMD) | 10 | $(INSTALL_CMD) |
| 11 | ChangeLog: | 11 | ChangeLog: |
| 12 | $(CHANGELOG_CMD) | 12 | git log > ChangeLog |
| 13 | 13 | ||
| 14 | dist-hook: ChangeLog INSTALL | 14 | dist-hook: ChangeLog INSTALL |
diff --git a/configure.ac b/configure.ac index 52f16eb..b2e70d9 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # Initialize Autoconf | 1 | # Initialize Autoconf |
| 2 | AC_PREREQ([2.60]) | 2 | AC_PREREQ([2.60]) |
| 3 | AC_INIT([Gesture Recognition And Instantiation Library], | 3 | AC_INIT([Gesture Recognition And Instantiation Library], |
| 4 | [0.1.0], | 4 | [1.0.0], |
| 5 | [], | 5 | [], |
| 6 | [grail]) | 6 | [grail]) |
| 7 | AC_CONFIG_SRCDIR([Makefile.am]) | 7 | AC_CONFIG_SRCDIR([Makefile.am]) |
| @@ -12,7 +12,7 @@ AC_CONFIG_AUX_DIR([config-aux]) | |||
| 12 | AM_INIT_AUTOMAKE([foreign dist-bzip2]) | 12 | AM_INIT_AUTOMAKE([foreign dist-bzip2]) |
| 13 | AM_MAINTAINER_MODE | 13 | AM_MAINTAINER_MODE |
| 14 | 14 | ||
| 15 | LIB_VERSION=0:1:0 | 15 | LIB_VERSION=1:0:0 |
| 16 | AC_SUBST([LIB_VERSION]) | 16 | AC_SUBST([LIB_VERSION]) |
| 17 | 17 | ||
| 18 | # Initialize libtool | 18 | # Initialize libtool |
diff --git a/src/Makefile.am b/src/Makefile.am index 4556610..932c8ae 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
| @@ -5,17 +5,22 @@ libgrail_la_LDFLAGS = \ | |||
| 5 | $(MTDEV_LIBS) | 5 | $(MTDEV_LIBS) |
| 6 | 6 | ||
| 7 | libgrail_la_SOURCES = \ | 7 | libgrail_la_SOURCES = \ |
| 8 | evbuf.h \ | ||
| 9 | gebuf.h \ | ||
| 8 | touch-dev.c \ | 10 | touch-dev.c \ |
| 9 | touch-engine.c \ | 11 | touch-engine.c \ |
| 10 | grail-bits.c \ | 12 | grail-bits.c \ |
| 11 | grail-inserter.c \ | 13 | grail-inserter.c \ |
| 14 | grail-inserter.h \ | ||
| 12 | grail-gestures.c \ | 15 | grail-gestures.c \ |
| 16 | grail-gestures.h \ | ||
| 13 | gestures-pan.c \ | 17 | gestures-pan.c \ |
| 14 | gestures-pinch.c \ | 18 | gestures-pinch.c \ |
| 15 | gestures-rotate.c \ | 19 | gestures-rotate.c \ |
| 16 | gestures-combo.c \ | 20 | gestures-combo.c \ |
| 17 | gestures-tapping.c \ | 21 | gestures-tapping.c \ |
| 18 | grail-recognizer.c \ | 22 | grail-recognizer.c \ |
| 23 | grail-recognizer.h \ | ||
| 19 | grail-api.c | 24 | grail-api.c |
| 20 | 25 | ||
| 21 | AM_CFLAGS = $(CWARNFLAGS) -pthread | 26 | AM_CFLAGS = $(CWARNFLAGS) -pthread |
