2010-07-19 03:42:37 +00:00
|
|
|
# -*- python -*-
|
2008-11-19 10:22:29 +00:00
|
|
|
|
|
|
|
Import('env')
|
2010-07-19 03:42:37 +00:00
|
|
|
import sys
|
2008-11-19 10:22:29 +00:00
|
|
|
|
2010-08-01 16:30:22 +00:00
|
|
|
env['HAVE_WIIUSE'] = 0
|
|
|
|
|
|
|
|
if not sys.platform == 'darwin' and not sys.platform == 'win32' and \
|
|
|
|
not (sys.platform == 'linux2' and env['HAVE_BLUEZ']):
|
2010-07-19 03:42:37 +00:00
|
|
|
Return()
|
|
|
|
|
|
|
|
env['HAVE_WIIUSE'] = 1
|
2008-12-05 13:46:19 +00:00
|
|
|
|
2008-11-19 10:22:29 +00:00
|
|
|
files = [
|
2010-07-19 03:42:37 +00:00
|
|
|
"ir.c",
|
|
|
|
"wiiuse.c",
|
2008-11-19 10:22:29 +00:00
|
|
|
]
|
|
|
|
|
2009-02-16 21:12:00 +00:00
|
|
|
if sys.platform == 'darwin':
|
2010-07-19 03:42:37 +00:00
|
|
|
files += [ "io_osx.m" ]
|
|
|
|
elif sys.platform == 'linux2':
|
|
|
|
files += [ "io_nix.c" ]
|
|
|
|
elif sys.platform == 'win32':
|
|
|
|
files += [ "io_win.c" ]
|
2009-02-16 21:12:00 +00:00
|
|
|
|
2010-07-16 19:08:26 +00:00
|
|
|
env.StaticLibrary(env['local_libs'] + "wiiuse", files)
|
2010-08-01 16:30:22 +00:00
|
|
|
env['CPPPATH'] += ['#Externals/WiiUse/Src']
|