xf86-input-wiimote
changeset 2:cf261a8d7631
Adding initial wscripts (checks for xinput and bluez)
| author | Arc Riley <arcriley@gmail.com> |
|---|---|
| date | Fri, 22 Jul 2011 01:32:14 -0400 |
| parents | 5e6f3d9d0ebb |
| children | 3f12cd094fde |
| files | src/wscript_build wscript |
| diffstat | 2 files changed, 51 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/wscript_build Fri Jul 22 01:32:14 2011 -0400 1.3 @@ -0,0 +1,11 @@ 1.4 +# encoding: utf-8 1.5 +source = bld.path.ant_glob('**/*.c') 1.6 +uselib = ['BLUEZ XI'] 1.7 + 1.8 +wiimote = bld.new_task_gen( 1.9 + features = 'c cshlib', 1.10 + name = 'wiimote_drv', 1.11 + target = 'wiimote_drv', 1.12 + uselib = uselib, 1.13 + source = source 1.14 +)
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/wscript Fri Jul 22 01:32:14 2011 -0400 2.3 @@ -0,0 +1,40 @@ 2.4 +# encoding: utf-8 2.5 + 2.6 +NAME = 'xf86-input-wiimote' 2.7 +DATE = 'unreleased' 2.8 +VERSION = 'unreleased' 2.9 +WEBSITE = 'http://www.pysoy.org/' 2.10 +LICENSE = ''' 2.11 + XInput Module for Wii Remote 2.12 + Copyright (C) 2011 Copyleft Games Group 2.13 + 2.14 + This program is free software: you can redistribute it and/or modify 2.15 + it under the terms of the GNU Lesser General Public License as published by 2.16 + the Free Software Foundation, either version 3 of the License, or 2.17 + (at your option) any later version. 2.18 + 2.19 + This program is distributed in the hope that it will be useful, 2.20 + but WITHOUT ANY WARRANTY; without even the implied warranty of 2.21 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2.22 + GNU Lesser General Public License for more details. 2.23 + 2.24 + You should have received a copy of the GNU Lesser General Public License 2.25 + along with this program. If not, see <http://www.gnu.org/licenses/>. 2.26 +''' 2.27 + 2.28 +top = '.' 2.29 +out = 'build' 2.30 + 2.31 +def options(opt) : 2.32 + opt.tool_options('gcc gxx') 2.33 + opt.load('compiler_c') 2.34 + 2.35 +def configure(conf) : 2.36 + conf.load('compiler_c') 2.37 + conf.check_cfg(package='bluez', uselib_store='BLUEZ', mandatory=True, 2.38 + args='--cflags --libs') 2.39 + conf.check_cfg(package='xi', uselib_store='XI', mandatory=True, 2.40 + args='--cflags --libs') 2.41 + 2.42 +def build(bld) : 2.43 + bld.add_subdirs('src')
