dolphin/Source/Plugins/Plugin_WiimoteNew/Src/SConscript
Soren Jorvang 697480f5cc Remove long-rotted vestiges of SDL video output.
Use SDL for input devices only on Windows and Linux. 
(Still globally enabled for the legacy Wiimote plugin.)


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5886 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-16 19:17:35 +00:00

43 lines
900 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'
]
cxxflags = [ ]
libs = [ 'inputcommon', 'common']
if sys.platform == 'win32' or sys.platform == 'linux2':
libs += [ 'SDL' ]
if wiinewenv['HAVE_WX']:
libs += [ 'inputuicommon' ]
files += [ 'WiimoteConfigDiag.cpp' ]
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)