Files
dolphin/Source/Plugins/Plugin_Wiimote/Src/SConscript
T

54 lines
991 B
Python
Raw Normal View History

2008-09-21 19:54:29 +00:00
# -*- python -*-
2008-11-19 10:22:29 +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"
files = [
2008-11-19 10:22:29 +00:00
"Config.cpp",
"DataReports.cpp",
"EmuDefinitions.cpp",
"EmuDynamics.cpp",
2008-11-19 10:22:29 +00:00
"EmuMain.cpp",
"EmuPad.cpp",
2008-11-19 10:32:11 +00:00
"EmuSubroutines.cpp",
2008-11-19 10:22:29 +00:00
"Encryption.cpp",
"main.cpp",
]
2008-12-14 23:52:01 +00:00
if wmenv['HAVE_WX']:
files += [
"ConfigDlg.cpp",
"ConfigGamepad.cpp",
"ConfigRecording.cpp",
"Logging.cpp",
2008-12-14 23:52:01 +00:00
"FillReport.cpp",
]
2009-02-09 21:19:35 +00:00
libs = [ 'common', 'inputcommon' ]
2008-10-27 20:29:32 +00:00
2009-02-17 22:06:40 +00:00
2008-12-05 13:46:19 +00:00
cxxflags = [ '-fPIC' ]
2008-10-27 20:29:32 +00:00
2008-12-05 13:46:19 +00:00
if wmenv['HAVE_WIIUSE']:
libs += [ 'wiiuse' ]
files += [ "wiimote_real.cpp" ]
files += [ "ReadWiimote.cpp" ]
2008-12-05 13:46:19 +00:00
cxxflags += ['-DHAVE_WIIUSE']
2009-04-30 14:23:45 +00:00
if sys.platform == 'darwin':
wmenv.Append(
CXXFLAGS = cxxflags,
LINKFLAGS = ['-framework' ,'IOBluetooth'],
LIBS = libs,
)
else:
wmenv.Append(
CXXFLAGS = cxxflags,
LIBS = libs,
)
2008-12-05 13:46:19 +00:00
wmenv.SharedLibrary(env['plugin_dir']+name, files)