summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/SConscript
blob: 49e0d08703a78be7798654d0592a30fb5fd63f69 (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
35
36
37
38
39
40
41
# -*- python -*-
import sys
Import('env')
icenv = env.Clone()

files = [
	'Configuration.cpp',
	'EventHandler.cpp',
	'InputCommon.cpp',
	'SDL_Util.cpp',
	'ControllerInterface/ControllerInterface.cpp',
	]

if env['HAVE_X11']:
	files += [
		"X11InputBase.cpp",
		]

if env['HAVE_WX']:
	files += [
		"WXInputBase.cpp",
		]

if icenv['HAVE_SDL']:
	files += [
		'ControllerInterface/SDL/SDL.cpp'
		]
	
if sys.platform == 'darwin':
	files += [
		'ControllerInterface/OSX/OSX.mm'
		]
	icenv['FRAMEWORKS'] = ['IOKit']
		   
if sys.platform == 'linux2':
	files += [
		'ControllerInterface/Xlib/Xlib.cpp'
		]

icenv.Append(CXXFLAGS = [ '-fPIC' ])
icenv.StaticLibrary(env['local_libs'] + "inputcommon", files)