2010-04-13 09:09:45 +03:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
|
|
|
name = "Plugin_WiimoteNew"
|
|
|
|
|
|
|
|
files = [
|
2010-07-08 03:52:46 +03: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 09:09:45 +03:00
|
|
|
]
|
|
|
|
|
2010-07-19 06:42:37 +03:00
|
|
|
libs = [ 'inputcommon', 'common' ]
|
2010-07-16 22:17:35 +03:00
|
|
|
|
|
|
|
if sys.platform == 'win32' or sys.platform == 'linux2':
|
|
|
|
libs += [ 'SDL' ]
|
|
|
|
|
2010-07-19 06:42:37 +03:00
|
|
|
if env['HAVE_WX']:
|
2010-07-16 23:08:38 +03:00
|
|
|
libs = [ 'inputuicommon' ] + libs
|
2010-07-08 03:52:46 +03:00
|
|
|
files += [ 'WiimoteConfigDiag.cpp' ]
|
|
|
|
|
2010-07-19 06:42:37 +03:00
|
|
|
if env['HAVE_WIIUSE']:
|
2010-07-08 03:52:46 +03:00
|
|
|
files += [ 'WiimoteReal/WiimoteReal.cpp' ]
|
2010-07-03 13:34:13 +03:00
|
|
|
libs += [ 'wiiuse' ]
|
|
|
|
|
2010-07-20 07:19:25 +03:00
|
|
|
env.SharedLibrary(env['plugin_dir'] + name, files, LIBS = env['LIBS'] + libs)
|