summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/SConscript
diff options
context:
space:
mode:
authorSoren Jorvang <soren.jorvang@gmail.com>2010-07-22 03:29:35 +0000
committerSoren Jorvang <soren.jorvang@gmail.com>2010-07-22 03:29:35 +0000
commit83883cee450846b59f136f53843106337526b2a5 (patch)
treed97864d274169643b9cbefccd48589e8a08e04d3 /Source/Core/InputCommon/Src/SConscript
parentcdce0ec3221fae0987b3f34f16be6371b8bac3cd (diff)
Port to *BSD. It runs but isn't terribly useful without Cg.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5934 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon/Src/SConscript')
-rw-r--r--Source/Core/InputCommon/Src/SConscript14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/Core/InputCommon/Src/SConscript b/Source/Core/InputCommon/Src/SConscript
index 6b189be449..b602fbb49a 100644
--- a/Source/Core/InputCommon/Src/SConscript
+++ b/Source/Core/InputCommon/Src/SConscript
@@ -8,7 +8,8 @@ files = [
'InputConfig.cpp',
'ControllerInterface/ControllerInterface.cpp',
'UDPWiimote.cpp',
- 'UDPWrapper.cpp'
+ 'UDPWrapper.cpp',
+ 'SDL_Util.cpp', # XXX needed by old Wiimote plugin
]
if sys.platform == 'win32':
@@ -16,6 +17,7 @@ if sys.platform == 'win32':
'ControllerInterface/DInput/DInput.cpp',
'ControllerInterface/DInput/DInputJoystick.cpp',
'ControllerInterface/DInput/DInputKeyboardMouse.cpp'
+ 'ControllerInterface/SDL/SDL.cpp',
'ControllerInterface/XInput/XInput.cpp',
]
elif sys.platform == 'darwin':
@@ -23,18 +25,12 @@ elif sys.platform == 'darwin':
'ControllerInterface/OSX/OSX.mm',
'ControllerInterface/OSX/OSXKeyboard.mm',
'ControllerInterface/OSX/OSXMouse.mm',
- 'SDL_Util.cpp', # XXX needed by old Wiimote plugin
]
-else:
+elif env['HAVE_X11']:
files += [
+ 'ControllerInterface/SDL/SDL.cpp',
'ControllerInterface/Xlib/Xlib.cpp',
'X11InputBase.cpp'
]
-if sys.platform == 'win32' or sys.platform == 'linux2':
- files += [
- 'ControllerInterface/SDL/SDL.cpp',
- 'SDL_Util.cpp',
- ]
-
env.StaticLibrary(env['local_libs'] + "inputcommon", files)