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