2010-07-19 03:42:37 +00:00
|
|
|
# -*- python -*-
|
2010-06-16 00:07:52 +00:00
|
|
|
|
|
|
|
Import('env')
|
2010-07-19 03:42:37 +00:00
|
|
|
import sys
|
2010-06-16 00:07:52 +00:00
|
|
|
|
|
|
|
files = [
|
|
|
|
'src/SDL.c',
|
|
|
|
'src/SDL_error.c',
|
|
|
|
'src/SDL_fatal.c',
|
|
|
|
'src/joystick/SDL_joystick.c',
|
|
|
|
]
|
|
|
|
|
2010-07-22 03:29:35 +00:00
|
|
|
if sys.platform.count('bsd'):
|
2010-07-29 17:52:43 +00:00
|
|
|
env['LIBS'] += ['usbhid']
|
2010-07-22 03:29:35 +00:00
|
|
|
files += [
|
|
|
|
'src/joystick/bsd/SDL_sysjoystick.c',
|
|
|
|
'src/stdlib/SDL_malloc.c',
|
|
|
|
'src/stdlib/SDL_string.c',
|
|
|
|
]
|
|
|
|
elif sys.platform == 'darwin':
|
2010-06-16 00:07:52 +00:00
|
|
|
files += [
|
|
|
|
'src/joystick/darwin/SDL_sysjoystick.c',
|
|
|
|
]
|
|
|
|
elif sys.platform == 'linux2':
|
|
|
|
files += [
|
|
|
|
'src/joystick/linux/SDL_sysjoystick.c',
|
2010-06-16 00:58:34 +00:00
|
|
|
'src/stdlib/SDL_string.c',
|
2010-06-16 00:07:52 +00:00
|
|
|
]
|
2010-07-22 03:29:35 +00:00
|
|
|
elif sys.platform == 'win32':
|
|
|
|
files += [
|
|
|
|
'src/joystick/win32/SDL_mmjoystick.c',
|
|
|
|
]
|
2010-06-16 00:07:52 +00:00
|
|
|
else:
|
|
|
|
files += [
|
|
|
|
'src/joystick/dummy/SDL_sysjoystick.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
env.StaticLibrary(env['local_libs'] + "SDL", files)
|