comparison configure.in @ 3097:0d12e8f1de3c

Date: Thu, 05 Feb 2009 18:07:35 +0100 From: Stefan Klug Subject: [SDL] SDL 1.3 WinCE backend as promised, I've started to work on the WinCE backend of SDL 1.3 I've modified the win32 video backend and the gdi renderer, to work properly in WinCE. The results till now are great, but there is still some work to do. Attached are two patches with my changes. I would be happy if someone could review and propably commit them. The first one (configure.in.patch) should be straight forward without any side effects. The second one does the necessary changes to the win32 backend. I was really unhappy to start slicing this shiny new backend with #ifdef/#endif but I saw no other option. The most problematic issues are: - WinCe has no GetDIBits, so its practically impossible to fill a BITMAPINFO with correct values. I therefore removed the bmi member from the GDI_RenderData in SDL_gdirender.c to prevent usage of a not or not properly initialized bmi. - In SDL_win32window.c I exchanged some ASCII function by their general counterparts, (In CE only the Unicode versions are available). I don't know if this has a negative effect when running in win32 Cheers Stefan
author Sam Lantinga <slouken@libsdl.org>
date Mon, 23 Mar 2009 05:35:21 +0000
parents 0b6f51c29267
children 82e60908fab1
comparison
equal deleted inserted replaced
3096:ae4e80dbe330 3097:0d12e8f1de3c
2529 AC_DEFINE(SDL_HAPTIC_DUMMY) 2529 AC_DEFINE(SDL_HAPTIC_DUMMY)
2530 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c" 2530 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
2531 have_haptic=yes 2531 have_haptic=yes
2532 fi 2532 fi
2533 ;; 2533 ;;
2534 *-wince* | *-mingw32ce)
2535 ARCH=win32
2536 CheckDummyVideo
2537 CheckDiskAudio
2538 CheckDummyAudio
2539 CheckWIN32
2540 CheckNASM
2541 #SOURCES="$SOURCES $srcdir/src/video/gapi/*.c"
2542 #AC_DEFINE(SDL_VIDEO_DRIVER_GAPI)
2543 if test x$enable_video = xyes; then
2544 AC_DEFINE(SDL_VIDEO_DRIVER_WIN32)
2545 SOURCES="$SOURCES $srcdir/src/video/win32/*.c"
2546 have_video=yes
2547 AC_ARG_ENABLE(render-gdi,
2548 AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]),
2549 , enable_render_gdi=yes)
2550 if test x$enable_render_gdi = xyes; then
2551 AC_DEFINE(SDL_VIDEO_RENDER_GDI)
2552 fi
2553 AC_ARG_ENABLE(render-d3d,
2554 AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]),
2555 , enable_render_d3d=yes)
2556 enable_render_d3d=no
2557 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
2558 AC_DEFINE(SDL_VIDEO_RENDER_D3D)
2559 fi
2560 fi
2561 # Set up files for the audio library
2562 if test x$enable_audio = xyes; then
2563 AC_DEFINE(SDL_AUDIO_DRIVER_WINWAVEOUT)
2564 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
2565 if test x$have_dsound = xyes; then
2566 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND)
2567 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
2568 fi
2569 have_audio=yes
2570 fi
2571 # Set up files for the thread library
2572 if test x$enable_threads = xyes; then
2573 AC_DEFINE(SDL_THREAD_WIN32)
2574 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
2575 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
2576 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
2577 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
2578 have_threads=yes
2579 fi
2580 # Set up files for the timer library
2581 if test x$enable_timers = xyes; then
2582 AC_DEFINE(SDL_TIMER_WINCE)
2583 SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
2584 have_timers=yes
2585 fi
2586 # Set up files for the shared object loading library
2587 if test x$enable_loadso = xyes; then
2588 AC_DEFINE(SDL_LOADSO_WIN32)
2589 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
2590 have_loadso=yes
2591 fi
2592 # Set up the system libraries we need
2593 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer"
2594 # The Win32 platform requires special setup
2595 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
2596 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
2597 SDL_LIBS="-lSDLmain $SDL_LIBS"
2598 ;;
2534 *-*-cygwin* | *-*-mingw32*) 2599 *-*-cygwin* | *-*-mingw32*)
2535 ARCH=win32 2600 ARCH=win32
2536 if test "$build" != "$host"; then # cross-compiling 2601 if test "$build" != "$host"; then # cross-compiling
2537 # Default cross-compile location 2602 # Default cross-compile location
2538 ac_default_prefix=/usr/local/cross-tools/i386-mingw32 2603 ac_default_prefix=/usr/local/cross-tools/i386-mingw32
2848 esac 2913 esac
2849 2914
2850 # Verify that we have all the platform specific files we need 2915 # Verify that we have all the platform specific files we need
2851 2916
2852 if test x$enable_joystick = xyes; then 2917 if test x$enable_joystick = xyes; then
2853 if test x$have_joystick != xyes; then 2918 if test x$have_joystick != xyes; then
2854 # Wants joystick subsystem, but doesn't have a platform-specific backend... 2919 AC_DEFINE(SDL_JOYSTICK_DISABLED)
2920 fi
2855 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" 2921 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
2856 fi
2857 fi 2922 fi
2858 if test x$have_haptic != xyes; then 2923 if test x$have_haptic != xyes; then
2859 if test x$enable_haptic = xyes; then 2924 if test x$enable_haptic = xyes; then
2860 AC_DEFINE(SDL_HAPTIC_DISABLED) 2925 AC_DEFINE(SDL_HAPTIC_DISABLED)
2861 fi 2926 fi