From 40d6c7304cf431f13bfe81600656b268c881a4a2 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 5 Aug 2010 20:00:23 +0200 Subject: Prepare a proper upstream package Make sure that tarballs can be made, and change the version to 1.0. Signed-off-by: Henrik Rydberg --- .gitignore | 1 - INSTALL | 32 ++++++++++++++++++++++++++++++++ Makefile.am | 2 +- configure.ac | 4 ++-- src/Makefile.am | 5 +++++ 5 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 INSTALL diff --git a/.gitignore b/.gitignore index 87fa680..fcb80fc 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,6 @@ configure configure.scan depcomp .deps/ -INSTALL install-sh .libs/ libtool diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..4e42ff7 --- /dev/null +++ b/INSTALL @@ -0,0 +1,32 @@ +grail - Gesture Recognition And Instantiation Library + +To build, you need to have the autoconf, libtool and mtdev-dev packages +installed. Then, do + + ./autogen.sh + ./configure + make + +To test the touch properties of an MT device at /dev/input/eventX, do + + sudo ./test/grail-touch /dev/input/eventX + +You should be able to see touch events in the terminal. After five +seconds of inactivity, the program exits. + +To test gestures, do + + sudo ./test/grail-gesture 0xffffffff /dev/input/eventX + +You should be able to see gesture events in the terminal. After five +seconds of inactivity, the program exits. + +To install grail, do + + sudo make install + +By default, grail installs to /usr/local. To change, use the --prefix +configure option. + +Enjoy, +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/ INSTALL: $(INSTALL_CMD) ChangeLog: - $(CHANGELOG_CMD) + git log > ChangeLog 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 @@ # Initialize Autoconf AC_PREREQ([2.60]) AC_INIT([Gesture Recognition And Instantiation Library], - [0.1.0], + [1.0.0], [], [grail]) AC_CONFIG_SRCDIR([Makefile.am]) @@ -12,7 +12,7 @@ AC_CONFIG_AUX_DIR([config-aux]) AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE -LIB_VERSION=0:1:0 +LIB_VERSION=1:0:0 AC_SUBST([LIB_VERSION]) # 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 = \ $(MTDEV_LIBS) libgrail_la_SOURCES = \ + evbuf.h \ + gebuf.h \ touch-dev.c \ touch-engine.c \ grail-bits.c \ grail-inserter.c \ + grail-inserter.h \ grail-gestures.c \ + grail-gestures.h \ gestures-pan.c \ gestures-pinch.c \ gestures-rotate.c \ gestures-combo.c \ gestures-tapping.c \ grail-recognizer.c \ + grail-recognizer.h \ grail-api.c AM_CFLAGS = $(CWARNFLAGS) -pthread -- cgit v1.2.3