34 lines
783 B
Python
34 lines
783 B
Python
# -*- python -*-
|
|
import sys
|
|
Import('env')
|
|
|
|
files = [
|
|
'ControllerEmu.cpp',
|
|
'InputConfig.cpp',
|
|
'ControllerInterface/ControllerInterface.cpp',
|
|
'UDPWiimote.cpp',
|
|
'UDPWrapper.cpp',
|
|
]
|
|
|
|
if sys.platform == 'win32':
|
|
files += [
|
|
'ControllerInterface/DInput/DInput.cpp',
|
|
'ControllerInterface/DInput/DInputJoystick.cpp',
|
|
'ControllerInterface/DInput/DInputKeyboardMouse.cpp'
|
|
'ControllerInterface/SDL/SDL.cpp',
|
|
'ControllerInterface/XInput/XInput.cpp',
|
|
]
|
|
elif sys.platform == 'darwin':
|
|
files += [
|
|
'ControllerInterface/OSX/OSX.mm',
|
|
'ControllerInterface/OSX/OSXKeyboard.mm',
|
|
'ControllerInterface/OSX/OSXJoystick.mm',
|
|
]
|
|
elif env['HAVE_X11']:
|
|
files += [
|
|
'ControllerInterface/SDL/SDL.cpp',
|
|
'ControllerInterface/Xlib/Xlib.cpp',
|
|
]
|
|
|
|
env['LIBS'] += env.StaticObject(files)
|