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