38 lines
805 B
Python
38 lines
805 B
Python
# -*- 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',
|
|
'WiimoteEmu/Attachment/Drums.cpp',
|
|
'WiimoteEmu/Attachment/Guitar.cpp',
|
|
'WiimoteEmu/EmuSubroutines.cpp',
|
|
'WiimoteEmu/Encryption.cpp',
|
|
'WiimoteEmu/Speaker.cpp',
|
|
'WiimoteNew.cpp',
|
|
'WiimoteConfigDiag.cpp',
|
|
]
|
|
|
|
libs = [ 'inputcommon', 'inputuicommon', 'common', 'SDL' ]
|
|
|
|
cxxflags = [ ]
|
|
|
|
if wiinewenv['HAVE_WIIUSE']:
|
|
cxxflags += [ '-DHAVE_WIIUSE' ]
|
|
files += [ "WiimoteReal/WiimoteReal.cpp" ]
|
|
libs += [ 'wiiuse' ]
|
|
|
|
wiinewenv.Append(
|
|
CXXFLAGS = cxxflags,
|
|
LIBS = libs
|
|
)
|
|
|
|
wiinewenv.SharedLibrary(env['plugin_dir']+name, files)
|