dolphin/Source/Plugins/Plugin_Wiimote/Src/SConscript
John Peterson 8eeb1d0202 Wiimote: Switch between emulated and real Wiimote during gameplay.
Notice: It's currently not very user friendly and can crash or fail under some circumstances. I'll make it better momentarily. You currently have to first open the Wiimote config window and the start a game to be able to use switch back and forth after that.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2011 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-25 23:07:15 +00:00

40 lines
719 B
Python

# -*- python -*-
Import('env')
import sys
wmenv = env.Clone()
name = "Plugin_Wiimote"
files = [
"Config.cpp",
"DataReports.cpp",
"EmuDefinitions.cpp",
"EmuMain.cpp",
"EmuSubroutines.cpp",
"Encryption.cpp",
"main.cpp",
]
if wmenv['HAVE_WX']:
files += [
"ConfigDlg.cpp",
"Logging.cpp",
"FillReport.cpp",
]
libs = [ 'common' ]
cxxflags = [ '-fPIC' ]
if wmenv['HAVE_WIIUSE']:
libs += [ 'wiiuse' ]
files += [ "wiimote_real.cpp" ]
files += [ "ReadWiimote.cpp" ]
cxxflags += ['-DHAVE_WIIUSE']
wmenv.Append(
CXXFLAGS = cxxflags,
LIBS = libs,
)
wmenv.SharedLibrary(env['plugin_dir']+name, files)