2010-07-19 03:42:37 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
2008-09-13 10:28:23 +00:00
|
|
|
Import('env')
|
2010-07-24 17:39:17 +00:00
|
|
|
import os
|
2008-09-13 10:28:23 +00:00
|
|
|
|
2010-07-24 17:39:17 +00:00
|
|
|
name = os.sep + "Plugin_Wiimote"
|
2008-09-13 10:28:23 +00:00
|
|
|
|
|
|
|
files = [
|
2010-07-08 00:52:46 +00:00
|
|
|
"Config.cpp",
|
|
|
|
"DataReports.cpp",
|
|
|
|
"EmuDefinitions.cpp",
|
|
|
|
"EmuDynamics.cpp",
|
|
|
|
"EmuMain.cpp",
|
|
|
|
"EmuPad.cpp",
|
|
|
|
"EmuSubroutines.cpp",
|
|
|
|
"Encryption.cpp",
|
|
|
|
"main.cpp",
|
|
|
|
"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
|
|
|
|
2010-07-08 00:52:46 +00:00
|
|
|
libs = [ 'inputcommon', 'common', 'SDL' ]
|
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
if env['HAVE_WX']:
|
2010-07-08 00:52:46 +00:00
|
|
|
libs = [ 'inputuicommon' ] + libs
|
|
|
|
files += [
|
|
|
|
"ConfigBasicDlg.cpp",
|
|
|
|
"ConfigPadDlg.cpp",
|
|
|
|
"ConfigGamepad.cpp",
|
|
|
|
"FillReport.cpp",
|
2010-07-19 03:42:37 +00:00
|
|
|
]
|
2010-06-10 14:18:21 +00:00
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
if env['HAVE_WIIUSE']:
|
|
|
|
libs += [ 'wiiuse' ]
|
|
|
|
files += [ 'wiimote_real.cpp' ]
|
2009-04-30 14:23:45 +00:00
|
|
|
|
2010-10-05 18:10:06 +00:00
|
|
|
env.SharedLibrary(env['plugin_dir'] + name, files, LIBS = libs + env['LIBS'])
|