2008-11-19 10:22:29 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
if not env['HAVE_BLUEZ']:
|
|
|
|
env['HAVE_WIIUSE'] = 0
|
|
|
|
Return()
|
|
|
|
|
2008-11-19 10:22:29 +00:00
|
|
|
files = [
|
|
|
|
"classic.c",
|
|
|
|
"dynamics.c",
|
|
|
|
"events.c",
|
|
|
|
"io.c",
|
|
|
|
"io_nix.c",
|
|
|
|
"ir.c",
|
|
|
|
"nunchuk.c",
|
|
|
|
"guitar_hero_3.c",
|
|
|
|
"wiiuse.c",
|
|
|
|
]
|
|
|
|
|
|
|
|
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
|