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