2010-04-13 06:09:45 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
|
|
|
name = "Plugin_WiimoteNew"
|
|
|
|
|
|
|
|
files = [
|
2010-07-08 00:52:46 +00:00
|
|
|
'WiimoteEmu/WiimoteEmu.cpp',
|
|
|
|
'WiimoteEmu/Attachment/Classic.cpp',
|
|
|
|
'WiimoteEmu/Attachment/Attachment.cpp',
|
|
|
|
'WiimoteEmu/Attachment/Nunchuk.cpp',
|
|
|
|
'WiimoteEmu/Attachment/Drums.cpp',
|
|
|
|
'WiimoteEmu/Attachment/Guitar.cpp',
|
|
|
|
'WiimoteEmu/EmuSubroutines.cpp',
|
|
|
|
'WiimoteEmu/Encryption.cpp',
|
|
|
|
'WiimoteEmu/Speaker.cpp',
|
|
|
|
'WiimoteNew.cpp'
|
2010-04-13 06:09:45 +00:00
|
|
|
]
|
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
libs = [ 'inputcommon', 'common' ]
|
2010-07-16 19:17:35 +00:00
|
|
|
|
|
|
|
if sys.platform == 'win32' or sys.platform == 'linux2':
|
|
|
|
libs += [ 'SDL' ]
|
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
if env['HAVE_WX']:
|
2010-07-16 20:08:38 +00:00
|
|
|
libs = [ 'inputuicommon' ] + libs
|
2010-07-08 00:52:46 +00:00
|
|
|
files += [ 'WiimoteConfigDiag.cpp' ]
|
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
if env['HAVE_WIIUSE']:
|
2010-07-08 00:52:46 +00:00
|
|
|
files += [ 'WiimoteReal/WiimoteReal.cpp' ]
|
2010-07-03 10:34:13 +00:00
|
|
|
libs += [ 'wiiuse' ]
|
|
|
|
|
2010-07-20 02:45:31 +00:00
|
|
|
env.SharedLibrary('#' + env['plugin_dir'] + name, files, LIBS = env['LIBS'] + libs)
|