Skip to content

Commit

Permalink
Undo build-dosbox,sh changes for MinGW builds
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed May 30, 2024
1 parent 6e3fae1 commit dcceac3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-mingw
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sed -i 's/^#define ENABLE_IM_EVENT 1$/\/\/#define ENABLE_IM_EVENT 1/g' vs/sdl/in

# prefer to compile against our own copy of SDL 1.x
echo "Compiling our internal SDL 1.x"
cp vs/sdl/build-dosbox.sh vs/sdl/build-dosbox.bak
sed -i 's/^make -j3/sed -i '"'"'s\/\^CFLAGS\.\*\/CFLAGS = -g -O2 -Wno-error=incompatible-pointer-types\/g'"'"' \.\/Makefile\nmake -j3/g' vs/sdl/build-dosbox.sh
(cd vs/sdl && ./build-dosbox.sh) || exit 1

Expand All @@ -38,6 +39,9 @@ echo "Compiling our internal SDLnet 1.x"

sed -i 's/^\/\/#define ENABLE_IM_EVENT 1$/#define ENABLE_IM_EVENT 1/g' vs/sdl/include/SDL_platform.h
(cd vs/sdl && ./build-dosbox.sh) || exit 1
rm vs/sdl/build-dosbox.sh
mv vs/sdl/build-dosbox.bak vs/sdl/build-dosbox.sh
chmod +x vs/sdl/build-dosbox.sh

# NTS: MinGW provides zlib for us
if false; then
Expand Down

0 comments on commit dcceac3

Please sign in to comment.