diff options
author | Stephen M. Webb <stephen.webb@canonical.com> | 2011-11-23 22:24:15 -0500 |
---|---|---|
committer | Stephen M. Webb <stephen.webb@canonical.com> | 2011-11-23 22:24:15 -0500 |
commit | 8480b70c5855ebf7efbf94340772b9e4c972bbba (patch) | |
tree | e4c83d112cfd2e458bb87b5ad495f26a95aa8f25 /python | |
parent | 5972df0d150a38906787ded58ed2476820435655 (diff) |
Integrated python into existing build mechanism.
Diffstat (limited to 'python')
-rw-r--r-- | python/Makefile.am | 37 | ||||
-rw-r--r-- | python/Makefile.original (renamed from python/Makefile) | 0 | ||||
-rw-r--r-- | python/evemu-test-runner.in | 4 | ||||
-rw-r--r-- | python/evemu/const.py | 2 |
4 files changed, 42 insertions, 1 deletions
diff --git a/python/Makefile.am b/python/Makefile.am new file mode 100644 index 0000000..4b33e2c --- /dev/null +++ b/python/Makefile.am @@ -0,0 +1,37 @@ +# +# @file python/Makefile.am +# @brief automake recipe for the uTouch evemu Python bindings +# +# Copyright 2011 Canonical, Ltd. +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 3, as published +# by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranties of +# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see <http://www.gnu.org/licenses/>. + +nobase_python_PYTHON = \ + $(wildcard evemu/*.py) + +check_SCRIPTS = evemu-test-runner + +TESTS = $(check_SCRIPTS) + +evemu-test-runner: evemu-test-runner.in Makefile + $(AM_V_GEN)$(SED) \ + -e 's,[@]builddir[@],$(builddir),g' \ + -e 's,[@]top_builddir[@],$(top_builddir),g' \ + -e 's,[@]srcdir[@],$(srcdir),g' \ + -e 's,[@]python[@],$(PYTHON),g' \ + $< >$@ + chmod +x $@ + +BUILT_SOURCES = evemu-test-runner +EXTRA_DIST = evemu-test-runner.in $(wildcard evemu/test*) +CLEAN_FILES = $(BUILD_SOURCES) diff --git a/python/Makefile b/python/Makefile.original index 9dc959d..9dc959d 100644 --- a/python/Makefile +++ b/python/Makefile.original diff --git a/python/evemu-test-runner.in b/python/evemu-test-runner.in new file mode 100644 index 0000000..2d5d28c --- /dev/null +++ b/python/evemu-test-runner.in @@ -0,0 +1,4 @@ +#!/bin/sh + +PYTHONPATH=@builddir@:@srcdir@ LD_LIBRARY_PATH=@top_builddir@/src/.libs @python@ -m evemu.testing.runner + diff --git a/python/evemu/const.py b/python/evemu/const.py index 7851335..f70d022 100644 --- a/python/evemu/const.py +++ b/python/evemu/const.py @@ -1,4 +1,4 @@ -LIB = "libutouch-evemu" +LIB = "utouch-evemu" DEFAULT_LIB = "/usr/lib/libutouch-evemu.so" LOCAL_LIB = "../src/.libs/libutouch-evemu.so" UINPUT_NODE = "/dev/uinput" |