2010-04-13 06:09:45 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
2010-07-24 17:39:17 +00:00
|
|
|
import os
|
2010-04-13 06:09:45 +00:00
|
|
|
import sys
|
|
|
|
|
2010-07-24 17:39:17 +00:00
|
|
|
name = os.sep + "Plugin_WiimoteNew"
|
2010-04-13 06:09:45 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2010-07-22 06:05:08 +00:00
|
|
|
if not sys.platform == 'darwin':
|
2010-07-16 19:17:35 +00:00
|
|
|
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 04:19:25 +00:00
|
|
|
env.SharedLibrary(env['plugin_dir'] + name, files, LIBS = env['LIBS'] + libs)
|