2008-09-21 19:54:29 +00:00
|
|
|
# -*- python -*-
|
2008-11-19 10:22:29 +00:00
|
|
|
|
2008-09-13 10:28:23 +00:00
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
wmenv = env.Clone()
|
2008-11-13 08:12:48 +00:00
|
|
|
name = "Plugin_Wiimote"
|
2008-09-13 10:28:23 +00:00
|
|
|
|
|
|
|
files = [
|
2008-11-19 10:22:29 +00:00
|
|
|
"Config.cpp",
|
|
|
|
"DataReports.cpp",
|
|
|
|
"EmuDefinitions.cpp",
|
2010-06-09 19:41:17 +00:00
|
|
|
"EmuDynamics.cpp",
|
2008-11-19 10:22:29 +00:00
|
|
|
"EmuMain.cpp",
|
2009-02-09 13:10:29 +00:00
|
|
|
"EmuPad.cpp",
|
2008-11-19 10:32:11 +00:00
|
|
|
"EmuSubroutines.cpp",
|
2008-11-19 10:22:29 +00:00
|
|
|
"Encryption.cpp",
|
|
|
|
"main.cpp",
|
2010-06-09 19:41:17 +00:00
|
|
|
"Rumble.cpp",
|
2010-04-13 01:34:11 +00:00
|
|
|
"UDPWiimote.cpp"
|
2008-09-13 10:28:23 +00:00
|
|
|
]
|
2010-06-10 14:18:21 +00:00
|
|
|
|
2008-12-14 23:52:01 +00:00
|
|
|
if wmenv['HAVE_WX']:
|
|
|
|
files += [
|
2009-07-05 04:29:00 +00:00
|
|
|
"ConfigBasicDlg.cpp",
|
|
|
|
"ConfigPadDlg.cpp",
|
2010-06-09 19:41:17 +00:00
|
|
|
"ConfigGamepad.cpp",
|
2008-12-14 23:52:01 +00:00
|
|
|
"FillReport.cpp",
|
|
|
|
]
|
2010-06-10 14:18:21 +00:00
|
|
|
|
2010-07-06 01:37:34 +00:00
|
|
|
libs = [ 'inputuicommon', 'inputcommon', 'common', 'SDL' ]
|
2008-10-27 20:29:32 +00:00
|
|
|
|
2010-06-02 20:35:12 +00:00
|
|
|
cxxflags = [ ]
|
2008-10-27 20:29:32 +00:00
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
if wmenv['HAVE_WIIUSE']:
|
2010-06-10 14:18:21 +00:00
|
|
|
libs += [ 'wiiuse' ]
|
|
|
|
files += [ "wiimote_real.cpp" ]
|
|
|
|
cxxflags += ['-DHAVE_WIIUSE']
|
|
|
|
|
|
|
|
wmenv.Append(
|
|
|
|
CXXFLAGS = cxxflags,
|
|
|
|
LIBS = libs,
|
|
|
|
)
|
2009-04-30 14:23:45 +00:00
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
wmenv.SharedLibrary(env['plugin_dir']+name, files)
|