summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/SConscript
blob: 82e0de571c1e0c41046f105033e0b3b19d9d85c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- python -*-

import sys
Import('env')

files = [
	'Src/ControllerEmu.cpp',
	'Src/ControllerInterface/ControllerInterface.cpp',
	'Src/InputConfig.cpp',
	'Src/UDPWiimote.cpp',
	'Src/UDPWrapper.cpp',
	]

if sys.platform == 'win32':
	files += [
		'Src/ControllerInterface/DInput/DInput.cpp',
		'Src/ControllerInterface/DInput/DInputJoystick.cpp',
		'Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp'
		'Src/ControllerInterface/SDL/SDL.cpp',
		'Src/ControllerInterface/XInput/XInput.cpp',
		]
elif sys.platform == 'darwin':
	files += [
		'Src/ControllerInterface/OSX/OSX.mm',
		'Src/ControllerInterface/OSX/OSXKeyboard.mm',
		'Src/ControllerInterface/OSX/OSXJoystick.mm',
		]
elif env['HAVE_X11']:
	files += [
		'Src/ControllerInterface/SDL/SDL.cpp',
		'Src/ControllerInterface/Xlib/Xlib.cpp',
		]

env['LIBS'] += env.StaticLibrary('inputcommon', files)