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