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 = [
|
2008-11-19 12:22:29 +02:00
|
|
|
"Config.cpp",
|
|
|
|
"DataReports.cpp",
|
|
|
|
"EmuDefinitions.cpp",
|
2009-12-06 19:45:59 +02:00
|
|
|
"EmuDynamics.cpp",
|
2008-11-19 12:22:29 +02:00
|
|
|
"EmuMain.cpp",
|
2009-02-09 15:10:29 +02:00
|
|
|
"EmuPad.cpp",
|
2008-11-19 12:32:11 +02:00
|
|
|
"EmuSubroutines.cpp",
|
2008-11-19 12:22:29 +02:00
|
|
|
"Encryption.cpp",
|
|
|
|
"main.cpp",
|
2009-12-06 19:45:59 +02:00
|
|
|
"Rumble.cpp",
|
2008-09-13 13:28:23 +03:00
|
|
|
]
|
2008-12-15 01:52:01 +02:00
|
|
|
if wmenv['HAVE_WX']:
|
|
|
|
files += [
|
2009-07-05 07:29:00 +03:00
|
|
|
"ConfigBasicDlg.cpp",
|
|
|
|
"ConfigPadDlg.cpp",
|
|
|
|
"ConfigRecordingDlg.cpp",
|
2009-12-06 19:45:59 +02:00
|
|
|
"ConfigGamepad.cpp",
|
2009-02-04 15:35:28 +02:00
|
|
|
"ConfigRecording.cpp",
|
2008-12-15 01:52:01 +02:00
|
|
|
"FillReport.cpp",
|
|
|
|
]
|
2009-02-09 23:19:35 +02:00
|
|
|
libs = [ 'common', 'inputcommon' ]
|
2008-10-27 22:29:32 +02:00
|
|
|
|
2009-02-18 00:06:40 +02:00
|
|
|
|
2008-12-05 15:46:19 +02:00
|
|
|
cxxflags = [ '-fPIC' ]
|
2008-10-27 22:29:32 +02:00
|
|
|
|
2008-12-05 15:46:19 +02:00
|
|
|
if wmenv['HAVE_WIIUSE']:
|
|
|
|
libs += [ 'wiiuse' ]
|
|
|
|
files += [ "wiimote_real.cpp" ]
|
2009-01-26 01:07:15 +02:00
|
|
|
files += [ "ReadWiimote.cpp" ]
|
2008-12-05 15:46:19 +02:00
|
|
|
cxxflags += ['-DHAVE_WIIUSE']
|
|
|
|
|
2009-04-30 17:23:45 +03:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
wmenv.Append(
|
|
|
|
CXXFLAGS = cxxflags,
|
|
|
|
LINKFLAGS = ['-framework' ,'IOBluetooth'],
|
|
|
|
LIBS = libs,
|
|
|
|
)
|
2009-09-18 22:56:49 +03:00
|
|
|
wmenv['FRAMEWORKS'] = ['Cocoa', 'System']
|
2009-04-30 17:23:45 +03:00
|
|
|
else:
|
|
|
|
wmenv.Append(
|
|
|
|
CXXFLAGS = cxxflags,
|
|
|
|
LIBS = libs,
|
|
|
|
)
|
|
|
|
|
2008-12-05 15:46:19 +02:00
|
|
|
|
|
|
|
wmenv.SharedLibrary(env['plugin_dir']+name, files)
|