2009-01-15 06:48:15 +00:00
|
|
|
# -*- python -*-
|
2010-04-13 06:09:45 +00:00
|
|
|
import sys
|
2009-01-04 19:54:56 +00:00
|
|
|
Import('env')
|
|
|
|
|
|
|
|
files = [
|
2010-06-12 17:39:33 +00:00
|
|
|
'ControllerEmu.cpp',
|
|
|
|
'InputConfig.cpp',
|
2010-04-13 06:09:45 +00:00
|
|
|
'ControllerInterface/ControllerInterface.cpp',
|
2010-10-12 22:26:30 +00:00
|
|
|
#'UDPWiimote.cpp',
|
|
|
|
#'UDPWrapper.cpp',
|
2009-01-04 19:54:56 +00:00
|
|
|
]
|
|
|
|
|
2010-06-26 19:17:43 +00:00
|
|
|
if sys.platform == 'win32':
|
2009-07-09 06:50:22 +00:00
|
|
|
files += [
|
2010-07-09 01:26:53 +00:00
|
|
|
'ControllerInterface/DInput/DInput.cpp',
|
|
|
|
'ControllerInterface/DInput/DInputJoystick.cpp',
|
|
|
|
'ControllerInterface/DInput/DInputKeyboardMouse.cpp'
|
2010-07-22 03:29:35 +00:00
|
|
|
'ControllerInterface/SDL/SDL.cpp',
|
2010-07-09 01:26:53 +00:00
|
|
|
'ControllerInterface/XInput/XInput.cpp',
|
2009-07-09 06:50:22 +00:00
|
|
|
]
|
2010-06-26 19:17:43 +00:00
|
|
|
elif sys.platform == 'darwin':
|
2010-04-20 13:19:36 +00:00
|
|
|
files += [
|
2010-04-27 00:25:09 +00:00
|
|
|
'ControllerInterface/OSX/OSX.mm',
|
2010-04-27 07:33:33 +00:00
|
|
|
'ControllerInterface/OSX/OSXKeyboard.mm',
|
2010-07-16 19:17:35 +00:00
|
|
|
'ControllerInterface/OSX/OSXMouse.mm',
|
2010-10-12 22:26:30 +00:00
|
|
|
'ControllerInterface/SDL/SDL.cpp',
|
2010-04-20 13:19:36 +00:00
|
|
|
]
|
2010-07-22 03:29:35 +00:00
|
|
|
elif env['HAVE_X11']:
|
2010-04-20 13:19:36 +00:00
|
|
|
files += [
|
2010-07-22 03:29:35 +00:00
|
|
|
'ControllerInterface/SDL/SDL.cpp',
|
2010-06-26 19:17:43 +00:00
|
|
|
'ControllerInterface/Xlib/Xlib.cpp',
|
2010-04-20 13:19:36 +00:00
|
|
|
]
|
2010-04-13 06:09:45 +00:00
|
|
|
|
2010-06-10 14:18:21 +00:00
|
|
|
env.StaticLibrary(env['local_libs'] + "inputcommon", files)
|