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
|
|
|
|
|
|
|
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" ]
|
2010-10-12 23:39:16 +00:00
|
|
|
elif sys.platform == 'linux2' and env['HAVE_BLUEZ']:
|
2010-07-19 03:42:37 +00:00
|
|
|
files += [ "io_nix.c" ]
|
|
|
|
elif sys.platform == 'win32':
|
|
|
|
files += [ "io_win.c" ]
|
2010-10-12 23:39:16 +00:00
|
|
|
else:
|
|
|
|
files += [ "io_dummy.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']
|