New configure-based build system. Still work in progress, but much improved

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401365
This commit is contained in:
Sam Lantinga 2006-02-16 10:11:48 +00:00
parent 1507846225
commit d3805eef09
453 changed files with 3534 additions and 6707 deletions

View file

@ -1,19 +0,0 @@
## Makefile.am for the SDL event handling library
noinst_LTLIBRARIES = libevents.la
# Include the architecture-independent sources
COMMON_SRCS = \
SDL_events.c \
SDL_events_c.h \
SDL_expose.c \
SDL_sysevents.h \
SDL_quit.c \
SDL_active.c \
SDL_keyboard.c \
SDL_mouse.c \
SDL_resize.c
libevents_la_SOURCES = $(COMMON_SRCS)

View file

@ -23,16 +23,13 @@
/* General event handling code for SDL */
#include "SDL.h"
#include "SDL_events_c.h"
#include "SDL_timer_c.h"
#ifndef DISABLE_JOYSTICK
#include "SDL_joystick_c.h"
#endif
#ifndef ENABLE_X11
#define DISABLE_X11
#endif
#include "SDL_syswm.h"
#include "SDL_sysevents.h"
#include "SDL_events_c.h"
#include "../timer/SDL_timer_c.h"
#if !SDL_JOYSTICK_DISABLED
#include "../joystick/SDL_joystick_c.h"
#endif
/* Public data -- the event filter */
SDL_EventFilter SDL_EventOK = NULL;
@ -112,7 +109,7 @@ static int SDL_GobbleEvents(void *unused)
/* Queue pending key-repeat events */
SDL_CheckKeyRepeat();
#ifndef DISABLE_JOYSTICK
#if !SDL_JOYSTICK_DISABLED
/* Check for joystick state change */
if ( SDL_numjoysticks && (SDL_eventstate & SDL_JOYEVENTMASK) ) {
SDL_JoystickUpdate();
@ -150,16 +147,16 @@ static int SDL_StartEventThread(Uint32 flags)
SDL_memset(&SDL_EventLock, 0, sizeof(SDL_EventLock));
/* Create the lock and set ourselves active */
#ifndef DISABLE_THREADS
#if !SDL_THREADS_DISABLED
SDL_EventQ.lock = SDL_CreateMutex();
if ( SDL_EventQ.lock == NULL ) {
#ifdef macintosh /* On MacOS 7/8, you can't multithread, so no lock needed */
#ifdef macintosh /* MacOS classic you can't multithread, so no lock needed */
;
#else
return(-1);
#endif
}
#endif /* !DISABLE_THREADS */
#endif /* !SDL_THREADS_DISABLED */
SDL_EventQ.active = 1;
if ( (flags&SDL_INIT_EVENTTHREAD) == SDL_INIT_EVENTTHREAD ) {
@ -379,7 +376,7 @@ void SDL_PumpEvents(void)
/* Queue pending key-repeat events */
SDL_CheckKeyRepeat();
#ifndef DISABLE_JOYSTICK
#if !SDL_JOYSTICK_DISABLED
/* Check for joystick state change */
if ( SDL_numjoysticks && (SDL_eventstate & SDL_JOYEVENTMASK) ) {
SDL_JoystickUpdate();

View file

@ -24,8 +24,8 @@
#include "SDL_events.h"
#include "SDL_events_c.h"
#include "SDL_cursor_c.h"
#include "SDL_sysvideo.h"
#include "../video/SDL_cursor_c.h"
#include "../video/SDL_sysvideo.h"
/* These are static for our mouse handling code */

View file

@ -24,7 +24,7 @@
#include "SDL_events.h"
#include "SDL_events_c.h"
#include "SDL_sysvideo.h"
#include "../video/SDL_sysvideo.h"
/* Keep the last resize event so we don't post duplicates */

View file

@ -20,7 +20,7 @@
slouken@libsdl.org
*/
#include "SDL_sysvideo.h"
#include "../video/SDL_sysvideo.h"
/* Useful functions and variables from SDL_sysevents.c */