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 = [
|
2009-02-08 15:55:51 +01:00
|
|
|
'Configuration.cpp',
|
2010-06-12 19:39:33 +02:00
|
|
|
'ControllerEmu.cpp',
|
|
|
|
'InputConfig.cpp',
|
2010-01-29 05:42:19 +01:00
|
|
|
'SDL_Util.cpp',
|
2010-04-13 08:09:45 +02:00
|
|
|
'ControllerInterface/ControllerInterface.cpp',
|
2010-06-11 10:51:46 +02:00
|
|
|
'ControllerInterface/SDL/SDL.cpp'
|
2009-01-04 20:54:56 +01:00
|
|
|
]
|
|
|
|
|
2009-07-09 08:50:22 +02:00
|
|
|
if env['HAVE_X11']:
|
|
|
|
files += [
|
|
|
|
"X11InputBase.cpp",
|
|
|
|
]
|
|
|
|
|
2010-04-13 08:09:45 +02:00
|
|
|
if 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',
|
|
|
|
'ControllerInterface/OSX/OSXMouse.mm'
|
2010-04-20 15:19:36 +02:00
|
|
|
]
|
|
|
|
|
2010-04-13 08:09:45 +02:00
|
|
|
if sys.platform == 'linux2':
|
2010-04-20 15:19:36 +02:00
|
|
|
files += [
|
|
|
|
'ControllerInterface/Xlib/Xlib.cpp'
|
|
|
|
]
|
2010-04-13 08:09:45 +02:00
|
|
|
|
2010-06-10 16:18:21 +02:00
|
|
|
env.StaticLibrary(env['local_libs'] + "inputcommon", files)
|