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-06-26 19:17:43 +00:00
|
|
|
if (sys.platform == 'linux2' and env['HAVE_BLUEZ'] != 1):
|
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
|
|
|
"io.c",
|
|
|
|
"ir.c",
|
|
|
|
"wiiuse.c",
|
2008-11-19 10:22:29 +00:00
|
|
|
]
|
|
|
|
|
2010-06-26 19:17:43 +00:00
|
|
|
if sys.platform == 'linux2' and 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
|