2008-11-19 10:22:29 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
2009-02-16 21:12:00 +00:00
|
|
|
import sys
|
2008-11-19 10:22:29 +00:00
|
|
|
Import('env')
|
|
|
|
|
2010-01-20 11:49:11 +00:00
|
|
|
if (env['HAVE_BLUEZ'] != 1 and sys.platform != 'darwin'):
|
2008-12-05 13:46:19 +00:00
|
|
|
env['HAVE_WIIUSE'] = 0
|
|
|
|
Return()
|
|
|
|
|
2008-11-19 10:22:29 +00:00
|
|
|
files = [
|
2009-09-18 00:51:13 +00:00
|
|
|
"classic.c",
|
|
|
|
"dynamics.c",
|
|
|
|
"events.c",
|
|
|
|
"io.c",
|
|
|
|
"ir.c",
|
|
|
|
"nunchuk.c",
|
|
|
|
"guitar_hero_3.c",
|
|
|
|
"wiiboard.c",
|
|
|
|
"wiiuse.c",
|
2008-11-19 10:22:29 +00:00
|
|
|
]
|
|
|
|
|
2009-02-16 21:12:00 +00:00
|
|
|
if env['HAVE_BLUEZ']:
|
2009-09-18 00:51:13 +00:00
|
|
|
files += [ "io_nix.c", ]
|
2009-02-16 21:12:00 +00:00
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2009-07-08 08:04:36 +00:00
|
|
|
files += [ "io_osx.m", ]
|
2009-02-16 21:12:00 +00:00
|
|
|
|
2010-06-02 20:35:12 +00:00
|
|
|
env.StaticLibrary(env['local_libs'] + "wiiuse", files, LIBS='m')
|
2008-12-05 13:46:19 +00:00
|
|
|
|
|
|
|
env['HAVE_WIIUSE'] = 1
|