2010-04-13 06:09:45 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
|
|
|
name = "Plugin_WiimoteNew"
|
|
|
|
wiinewenv = env.Clone()
|
|
|
|
|
|
|
|
files = [
|
|
|
|
'WiimoteEmu/WiimoteEmu.cpp',
|
|
|
|
'WiimoteEmu/Attachment/Classic.cpp',
|
|
|
|
'WiimoteEmu/Attachment/Attachment.cpp',
|
|
|
|
'WiimoteEmu/Attachment/Nunchuk.cpp',
|
2010-07-05 13:51:01 +00:00
|
|
|
'WiimoteEmu/Attachment/UDPNunchuk.cpp',
|
2010-04-24 00:44:10 +00:00
|
|
|
'WiimoteEmu/Attachment/Drums.cpp',
|
|
|
|
'WiimoteEmu/Attachment/Guitar.cpp',
|
2010-04-13 06:09:45 +00:00
|
|
|
'WiimoteEmu/EmuSubroutines.cpp',
|
|
|
|
'WiimoteEmu/Encryption.cpp',
|
2010-04-29 18:51:04 +00:00
|
|
|
'WiimoteEmu/Speaker.cpp',
|
2010-04-13 06:09:45 +00:00
|
|
|
'WiimoteNew.cpp',
|
2010-07-03 08:04:10 +00:00
|
|
|
'WiimoteConfigDiag.cpp',
|
2010-04-13 06:09:45 +00:00
|
|
|
]
|
|
|
|
|
2010-07-06 01:37:34 +00:00
|
|
|
libs = [ 'inputuicommon', 'inputcommon', 'common', 'SDL' ]
|
2010-07-03 10:34:13 +00:00
|
|
|
|
|
|
|
cxxflags = [ ]
|
|
|
|
|
|
|
|
if wiinewenv['HAVE_WIIUSE']:
|
|
|
|
cxxflags += [ '-DHAVE_WIIUSE' ]
|
|
|
|
files += [ "WiimoteReal/WiimoteReal.cpp" ]
|
|
|
|
libs += [ 'wiiuse' ]
|
|
|
|
|
2010-04-13 06:09:45 +00:00
|
|
|
wiinewenv.Append(
|
2010-07-03 10:34:13 +00:00
|
|
|
CXXFLAGS = cxxflags,
|
|
|
|
LIBS = libs
|
2010-04-13 06:09:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
wiinewenv.SharedLibrary(env['plugin_dir']+name, files)
|