diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-02-24 18:19:26 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-03-30 08:20:21 +0200 |
| commit | a09fbf12cf0f137472863e52fd74939b2c2c4585 (patch) | |
| tree | 0235c375e2e0837acf550a320cee9414c024f5c8 | |
| parent | b7106543c46a729ba77290647e1069bd690413a9 (diff) | |
Add comments on win9x builds
| -rw-r--r-- | doc/BUILD-win9x.md | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/doc/BUILD-win9x.md b/doc/BUILD-win9x.md index 51c10ff..2120f4e 100644 --- a/doc/BUILD-win9x.md +++ b/doc/BUILD-win9x.md @@ -91,9 +91,29 @@ configures SDL as a static library. ```sh ../sdl-1.2.15-src/configure --host=i386-mingw32 --prefix=$HOME/sdl-1.2.15 \ - --enable-shared=no CC=i386-mingw32-gcc + --enable-shared=no CC=i386-mingw32-gcc \ + CFLAGS='-ffunction-sections -fdata-sections' +``` + +### DirectX headers and static libraries +DirectX can help with hardware acceleration on older hardware. Fortunately, +the SDL team distribute both source and binaries that can be included when +building `sdl-1.2.15`. While two tarballs are distributed, only +`directx-devel.tar.gz` has been tested so far. + +[directx-devel.tar.gz](https://www.libsdl.org/extras/win32/common/directx-devel.tar.gz) +[directx-source.tar.z](https://www.libsdl.org/extras/win32/common/directx-source.tar.gz) + +```sh +../sdl-1.2.15-src/configure --host=i386-mingw32 --prefix=$HOME/sdl-1.2.15 \ + --enable-shared=no CC=i386-mingw32-gcc \ + CFLAGS="-ffunction-sections -fdata-sections \ + -I$HOME/directx-devel/include -L$HOME/directx-devel/lib" ``` +In order to take advantage of DirectX, remember to assign the environment +variable `SDL_VIDEODRIVER` to `directx` before running `rts`. + ## SDL_mixer Only `SDL_mixer-1.2.12` is known to work so far. Since `rts` only uses WAVE files, support for other audio formats is not required. @@ -102,5 +122,6 @@ WAVE files, support for other audio formats is not required. ../SDL_mixer-1.2.12-src/configure --host=i386-mingw32 --enable-shared=no \ --prefix=$HOME/SDL_mixer-1.2.12 --disable-music-cmd --disable-music-mod \ --disable-music-ogg --disable-music-mp3 --disable-music-midi \ - --disable-music-flac CC=i386-mingw32-gcc --with-sdl-prefix=$HOME/sdl-1.2.15 + --disable-music-flac CC=i386-mingw32-gcc --with-sdl-prefix=$HOME/sdl-1.2.15 \ + CFLAGS='-ffunction-sections -fdata-sections' ``` |
