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')
|
|
|
|
|
2009-02-16 21:12:00 +00:00
|
|
|
if not (env['HAVE_BLUEZ'] or 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 = [
|
|
|
|
"classic.c",
|
|
|
|
"dynamics.c",
|
|
|
|
"events.c",
|
|
|
|
"io.c",
|
|
|
|
"ir.c",
|
|
|
|
"nunchuk.c",
|
|
|
|
"guitar_hero_3.c",
|
|
|
|
"wiiuse.c",
|
|
|
|
]
|
|
|
|
|
2009-02-16 21:12:00 +00:00
|
|
|
if env['HAVE_BLUEZ']:
|
|
|
|
files += [ "io_nix.c", ]
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
|
|
|
files += [ "io_osx.c", ]
|
|
|
|
|
2008-11-19 10:22:29 +00:00
|
|
|
env_wiiuse = env.Clone(
|
2008-11-19 10:43:10 +00:00
|
|
|
CCFLAGS = env.filterWarnings(env['CCFLAGS']) + ' -fvisibility=default',
|
2008-11-19 10:22:29 +00:00
|
|
|
CXXFLAGS = env.filterWarnings(env['CXXFLAGS']),
|
|
|
|
)
|
|
|
|
|
|
|
|
libs = [
|
2008-12-04 15:15:21 +00:00
|
|
|
'm',
|
2008-11-19 10:22:29 +00:00
|
|
|
]
|
2008-12-05 13:46:19 +00:00
|
|
|
|
2008-11-19 10:49:36 +00:00
|
|
|
env_wiiuse.SharedLibrary(env['libs_dir']+"wiiuse", files, LIBS=libs)
|
2008-12-05 13:46:19 +00:00
|
|
|
|
|
|
|
env['HAVE_WIIUSE'] = 1
|