configure.in
changeset 3097 0d12e8f1de3c
parent 3087 0b6f51c29267
child 3099 82e60908fab1
     1.1 --- a/configure.in	Mon Mar 23 05:21:40 2009 +0000
     1.2 +++ b/configure.in	Mon Mar 23 05:35:21 2009 +0000
     1.3 @@ -2531,6 +2531,71 @@
     1.4              have_haptic=yes
     1.5          fi
     1.6          ;;
     1.7 +    *-wince* | *-mingw32ce)
     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 +        #AC_DEFINE(SDL_VIDEO_DRIVER_GAPI)
    1.16 +        if test x$enable_video = xyes; then
    1.17 +            AC_DEFINE(SDL_VIDEO_DRIVER_WIN32)
    1.18 +            SOURCES="$SOURCES $srcdir/src/video/win32/*.c"
    1.19 +            have_video=yes
    1.20 +            AC_ARG_ENABLE(render-gdi,
    1.21 +AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]),
    1.22 +                                , enable_render_gdi=yes)
    1.23 +            if test x$enable_render_gdi = xyes; then
    1.24 +                AC_DEFINE(SDL_VIDEO_RENDER_GDI)
    1.25 +            fi
    1.26 +            AC_ARG_ENABLE(render-d3d,
    1.27 +AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]),
    1.28 +                                , enable_render_d3d=yes)
    1.29 +            enable_render_d3d=no
    1.30 +            if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
    1.31 +                AC_DEFINE(SDL_VIDEO_RENDER_D3D)
    1.32 +            fi
    1.33 +        fi
    1.34 +        # Set up files for the audio library
    1.35 +        if test x$enable_audio = xyes; then
    1.36 +            AC_DEFINE(SDL_AUDIO_DRIVER_WINWAVEOUT)
    1.37 +            SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
    1.38 +            if test x$have_dsound = xyes; then
    1.39 +                AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND)
    1.40 +                SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
    1.41 +            fi
    1.42 +            have_audio=yes
    1.43 +        fi
    1.44 +        # Set up files for the thread library
    1.45 +        if test x$enable_threads = xyes; then
    1.46 +            AC_DEFINE(SDL_THREAD_WIN32)
    1.47 +            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
    1.48 +            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
    1.49 +            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
    1.50 +            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
    1.51 +            have_threads=yes
    1.52 +        fi
    1.53 +        # Set up files for the timer library
    1.54 +        if test x$enable_timers = xyes; then
    1.55 +            AC_DEFINE(SDL_TIMER_WINCE)
    1.56 +            SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
    1.57 +            have_timers=yes
    1.58 +        fi
    1.59 +        # Set up files for the shared object loading library
    1.60 +        if test x$enable_loadso = xyes; then
    1.61 +            AC_DEFINE(SDL_LOADSO_WIN32)
    1.62 +            SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
    1.63 +            have_loadso=yes
    1.64 +        fi
    1.65 +        # Set up the system libraries we need
    1.66 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer"
    1.67 +        # The Win32 platform requires special setup
    1.68 +        SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
    1.69 +        SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
    1.70 +        SDL_LIBS="-lSDLmain $SDL_LIBS"
    1.71 +        ;;
    1.72      *-*-cygwin* | *-*-mingw32*)
    1.73          ARCH=win32
    1.74          if test "$build" != "$host"; then # cross-compiling
    1.75 @@ -2850,10 +2915,10 @@
    1.76  # Verify that we have all the platform specific files we need
    1.77  
    1.78  if test x$enable_joystick = xyes; then
    1.79 -  if test x$have_joystick != xyes; then
    1.80 -    # Wants joystick subsystem, but doesn't have a platform-specific backend...
    1.81 +    if test x$have_joystick != xyes; then
    1.82 +        AC_DEFINE(SDL_JOYSTICK_DISABLED)
    1.83 +    fi
    1.84      SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
    1.85 -  fi
    1.86  fi
    1.87  if test x$have_haptic != xyes; then
    1.88      if test x$enable_haptic = xyes; then