# -*- 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',
	#'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',
	#'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',
	#'src/thread/SDL_thread.c',
	#'src/timer/SDL_timer.c',
	#'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',
		'src/stdlib/SDL_string.c',
		]
else:
	files += [
		'src/joystick/dummy/SDL_sysjoystick.c',
		]

env.StaticLibrary(env['local_libs'] + "SDL", files)
