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