configure.in
branchSDL-1.2
changeset 4134 31c7c57af8a4
parent 4132 f7e5a35a1d0d
child 4139 568c9b3c0167
     1.1 --- a/configure.in	Thu Jan 03 06:06:06 2008 +0000
     1.2 +++ b/configure.in	Thu Jan 03 06:19:07 2008 +0000
     1.3 @@ -2456,6 +2456,49 @@
     1.4          SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
     1.5          SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
     1.6          ;;
     1.7 +    *-wince*)
     1.8 +        ARCH=win32
     1.9 +        CheckDummyVideo
    1.10 +        CheckDiskAudio
    1.11 +        CheckDummyAudio
    1.12 +        CheckWIN32
    1.13 +        CheckNASM
    1.14 +        SOURCES="$SOURCES $srcdir/src/video/gapi/*.c"
    1.15 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -D_WIN32_WCE=0x420"
    1.16 +        if test x$enable_audio = xyes; then
    1.17 +            AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT)
    1.18 +            SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
    1.19 +            have_audio=yes
    1.20 +        fi
    1.21 +        # Set up files for the thread library
    1.22 +        if test x$enable_threads = xyes; then
    1.23 +            AC_DEFINE(SDL_THREAD_WIN32)
    1.24 +            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
    1.25 +            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
    1.26 +            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
    1.27 +            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
    1.28 +            have_threads=yes
    1.29 +        fi
    1.30 +        # Set up files for the timer library
    1.31 +        if test x$enable_timers = xyes; then
    1.32 +            AC_DEFINE(SDL_TIMER_WINCE)
    1.33 +            SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
    1.34 +            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lmmtimer"
    1.35 +            have_timers=yes
    1.36 +        fi
    1.37 +        # Set up files for the shared object loading library
    1.38 +        if test x$enable_loadso = xyes; then
    1.39 +            AC_DEFINE(SDL_LOADSO_WIN32)
    1.40 +            SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
    1.41 +            have_loadso=yes
    1.42 +        fi
    1.43 +        # Set up the system libraries we need
    1.44 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl"
    1.45 +        # The Win32 platform requires special setup
    1.46 +        SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
    1.47 +        SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
    1.48 +        SDL_LIBS="-lSDLmain $SDL_LIBS"
    1.49 +        ;;
    1.50      *-*-beos*)
    1.51          ARCH=beos
    1.52          ac_default_prefix=/boot/develop/tools/gnupro