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