Mercurial > sdl-ios-xcode
comparison configure.in @ 3168:6338b7f2d024
Hi,
I have prepared a set of patches to readd WindowsCE support to SDL 1.3.
I've created a new GAPI/Rawframebuffer and a DirectDraw renderer.
Both renderers are work in progress and there are several unimplemented
cases. (Notably
RenderLine/RenderPoint/RenderFill/QueryTexturePixels/UpdateTexture and
texture blending )
Nevertheless I am successfully using these renderers together with the
SDL software renderer. (On most devices the SDL software renderer will
be much faster as there are only badly optimized vendor drivers available)
I send these patches now in this unpolished state because there seems to
be some interest in win ce and someone has to start supporting SDL 1.3
Now on to the patches:
wince_events_window_fixes.patch
fixes some wince incompatibilities and adds fullscreen support via
SHFullScreen. NOTE: This patch shouldn't have any side effects on
Windows, but I have NOT tested it on Windows, so please double-check.
This patch doesn't dependent on the following ones.
wince_renderers_system.patch
This patch does all necessary modifications to the SDL system.
- it adds the renderers to the configure system
- it adds the renderers to win32video
SDL_ceddrawrender.c
SDL_ceddrawrender.h
SDL_gapirender_c.h
SDL_gapirender.c
SDL_gapirender.h
these files add the new render drivers and should be placed in
src/video/win32
Some notes to people who want to test this:
- I have only compiled sdl with ming32ce, so the VisualC files are not
up to date
- As mingw32ce has no ddraw.h this file must be taken from the MS SDK
and modified to work with gcc
- I had to modify line 2611 in configure.in to
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer
-Wl,--image-base -Wl,0x10000"
otherwise GetCPinfo wouldn't link. If someone knows whats causing this
I'd be happy to hear about it.
It would be great if these patches could make their way into SVN as this
would make collaboration much much easier.
I'm out of office for the next week and therefore will be unavailable
via email.
Regards
Stefan
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 07 Jun 2009 02:44:46 +0000 |
parents | df2bb5735822 |
children | b7a48f533966 |
comparison
equal
deleted
inserted
replaced
3167:0c85abc61e47 | 3168:6338b7f2d024 |
---|---|
2075 AC_MSG_ERROR([ | 2075 AC_MSG_ERROR([ |
2076 *** Your compiler ($CC) does not produce Win32 executables! | 2076 *** Your compiler ($CC) does not produce Win32 executables! |
2077 ]) | 2077 ]) |
2078 fi | 2078 fi |
2079 | 2079 |
2080 AC_MSG_CHECKING(Windows CE) | |
2081 have_wince=no | |
2082 AC_TRY_COMPILE([ | |
2083 #ifndef _WIN32_WCE | |
2084 #error This is not Windows CE | |
2085 #endif | |
2086 ],[ | |
2087 ],[ | |
2088 have_wince=yes | |
2089 ]) | |
2090 AC_MSG_RESULT($have_wince) | |
2091 | |
2080 dnl See if the user wants to redirect standard output to files | 2092 dnl See if the user wants to redirect standard output to files |
2081 AC_ARG_ENABLE(stdio-redirect, | 2093 AC_ARG_ENABLE(stdio-redirect, |
2082 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [[default=yes]]]), | 2094 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [[default=yes]]]), |
2083 , enable_stdio_redirect=yes) | 2095 , enable_stdio_redirect=yes) |
2084 if test x$enable_stdio_redirect != xyes; then | 2096 if test x$enable_stdio_redirect != xyes; then |
2092 AC_ARG_ENABLE(directx, | 2104 AC_ARG_ENABLE(directx, |
2093 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]), | 2105 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]), |
2094 , enable_directx=yes) | 2106 , enable_directx=yes) |
2095 if test x$enable_directx = xyes; then | 2107 if test x$enable_directx = xyes; then |
2096 AC_CHECK_HEADER(d3d9.h, have_d3d=yes) | 2108 AC_CHECK_HEADER(d3d9.h, have_d3d=yes) |
2109 AC_CHECK_HEADER(ddraw.h, have_ddraw=yes) | |
2097 AC_CHECK_HEADER(dsound.h, have_dsound=yes) | 2110 AC_CHECK_HEADER(dsound.h, have_dsound=yes) |
2098 AC_CHECK_HEADER(dinput.h, have_dinput=yes) | 2111 AC_CHECK_HEADER(dinput.h, have_dinput=yes) |
2099 fi | 2112 fi |
2100 } | 2113 } |
2101 | 2114 |
2554 AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]), | 2567 AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]), |
2555 , enable_render_gdi=yes) | 2568 , enable_render_gdi=yes) |
2556 if test x$enable_render_gdi = xyes; then | 2569 if test x$enable_render_gdi = xyes; then |
2557 AC_DEFINE(SDL_VIDEO_RENDER_GDI) | 2570 AC_DEFINE(SDL_VIDEO_RENDER_GDI) |
2558 fi | 2571 fi |
2572 AC_ARG_ENABLE(render-gapi, | |
2573 AC_HELP_STRING([--enable-render-gapi], [enable the GAPI/RAWFRAMEBUFFER render driver [[default=yes]]]), | |
2574 , enable_render_gapi=yes) | |
2575 if test x$enable_render_gapi = xyes -a x$have_wince = xyes; then | |
2576 AC_DEFINE(SDL_VIDEO_RENDER_GAPI) | |
2577 fi | |
2578 AC_ARG_ENABLE(render-ddraw, | |
2579 AC_HELP_STRING([--enable-render-ddraw], [enable the Mobile DirectDraw render driver [[default=yes]]]), | |
2580 , enable_render_ddraw=yes) | |
2581 if test x$enable_render_ddraw = xyes -a x$have_wince = xyes -a x$have_ddraw = xyes; then | |
2582 AC_DEFINE(SDL_VIDEO_RENDER_DDRAW) | |
2583 fi | |
2559 AC_ARG_ENABLE(render-d3d, | 2584 AC_ARG_ENABLE(render-d3d, |
2560 AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]), | 2585 AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]), |
2561 , enable_render_d3d=yes) | 2586 , enable_render_d3d=yes) |
2562 enable_render_d3d=no | 2587 enable_render_d3d=no |
2563 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then | 2588 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then |