2010-06-16 00:07:52 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import sys
|
|
|
|
Import('env')
|
|
|
|
|
|
|
|
files = [
|
|
|
|
'src/SDL.c',
|
|
|
|
'src/SDL_error.c',
|
|
|
|
'src/SDL_fatal.c',
|
|
|
|
#'src/audio/SDL_audio.c',
|
|
|
|
#'src/audio/SDL_audiocvt.c',
|
|
|
|
#'src/audio/SDL_audiodev.c',
|
|
|
|
#'src/audio/SDL_mixer.c',
|
|
|
|
#'src/audio/SDL_mixer_MMX.c',
|
|
|
|
#'src/audio/SDL_mixer_MMX_VC.c',
|
|
|
|
#'src/audio/SDL_mixer_m68k.c',
|
|
|
|
#'src/audio/SDL_wave.c',
|
|
|
|
#'src/cdrom/SDL_cdrom.c',
|
|
|
|
#'src/cpuinfo/SDL_cpuinfo.c',
|
2010-06-16 00:58:34 +00:00
|
|
|
#'src/events/SDL_active.c',
|
|
|
|
#'src/events/SDL_events.c',
|
|
|
|
#'src/events/SDL_expose.c',
|
|
|
|
#'src/events/SDL_keyboard.c',
|
|
|
|
#'src/events/SDL_mouse.c',
|
|
|
|
#'src/events/SDL_quit.c',
|
|
|
|
#'src/events/SDL_resize.c',
|
2010-06-16 00:07:52 +00:00
|
|
|
#'src/file/SDL_rwops.c',
|
|
|
|
'src/joystick/SDL_joystick.c',
|
|
|
|
#'src/stdlib/SDL_getenv.c',
|
|
|
|
#'src/stdlib/SDL_iconv.c',
|
|
|
|
#'src/stdlib/SDL_malloc.c',
|
|
|
|
#'src/stdlib/SDL_qsort.c',
|
|
|
|
#'src/stdlib/SDL_stdlib.c',
|
2010-06-16 00:58:34 +00:00
|
|
|
#'src/thread/SDL_thread.c',
|
|
|
|
#'src/timer/SDL_timer.c',
|
2010-06-16 00:07:52 +00:00
|
|
|
#'src/video/SDL_RLEaccel.c',
|
|
|
|
#'src/video/SDL_blit.c',
|
|
|
|
#'src/video/SDL_blit_0.c',
|
|
|
|
#'src/video/SDL_blit_1.c',
|
|
|
|
#'src/video/SDL_blit_A.c',
|
|
|
|
#'src/video/SDL_blit_N.c',
|
|
|
|
#'src/video/SDL_bmp.c',
|
|
|
|
#'src/video/SDL_cursor.c',
|
|
|
|
#'src/video/SDL_gamma.c',
|
|
|
|
#'src/video/SDL_pixels.c',
|
|
|
|
#'src/video/SDL_stretch.c',
|
|
|
|
#'src/video/SDL_surface.c',
|
|
|
|
#'src/video/SDL_video.c',
|
|
|
|
#'src/video/SDL_yuv.c',
|
|
|
|
#'src/video/SDL_yuv_mmx.c',
|
|
|
|
#'src/video/SDL_yuv_sw.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
|
|
|
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
|
|
|
]
|
|
|
|
else:
|
|
|
|
files += [
|
|
|
|
'src/joystick/dummy/SDL_sysjoystick.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
env.StaticLibrary(env['local_libs'] + "SDL", files)
|