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