mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make SDL Mixer X win32-exclusive
This commit is contained in:
parent
3dfbb61546
commit
0939cabd57
4 changed files with 11 additions and 3 deletions
|
|
@ -80,7 +80,11 @@ ifdef NOMIXER
|
||||||
else
|
else
|
||||||
i_sound_o=$(OBJDIR)/mixer_sound.o
|
i_sound_o=$(OBJDIR)/mixer_sound.o
|
||||||
OPTS+=-DHAVE_MIXER
|
OPTS+=-DHAVE_MIXER
|
||||||
|
ifdef MINGW
|
||||||
SDL_LDFLAGS+=-lSDL2_mixer_ext
|
SDL_LDFLAGS+=-lSDL2_mixer_ext
|
||||||
|
else
|
||||||
|
SDL_LDFLAGS+=-lSDL2_mixer
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef SDL_TTF
|
ifdef SDL_TTF
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,11 @@
|
||||||
#pragma warning(default : 4214 4244)
|
#pragma warning(default : 4214 4244)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "SDL2/SDL_mixer_ext.h"
|
#ifdef _WIN32
|
||||||
|
#include "SDL_mixer_ext.h"
|
||||||
|
#else
|
||||||
|
#include "SDL_mixer.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This is the version number macro for the current SDL_mixer version: */
|
/* This is the version number macro for the current SDL_mixer version: */
|
||||||
#ifndef SDL_MIXER_COMPILEDVERSION
|
#ifndef SDL_MIXER_COMPILEDVERSION
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MIXER
|
#ifdef HAVE_MIXER
|
||||||
#include <SDL2/SDL_mixer_ext.h>
|
#include <SDL_mixer.h>
|
||||||
/* This is the version number macro for the current SDL_mixer version: */
|
/* This is the version number macro for the current SDL_mixer version: */
|
||||||
#ifndef SDL_MIXER_COMPILEDVERSION
|
#ifndef SDL_MIXER_COMPILEDVERSION
|
||||||
#define SDL_MIXER_COMPILEDVERSION \
|
#define SDL_MIXER_COMPILEDVERSION \
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ else
|
||||||
HAVE_LIBGME=1
|
HAVE_LIBGME=1
|
||||||
LIBGME_CFLAGS=-I../libs/gme/include
|
LIBGME_CFLAGS=-I../libs/gme/include
|
||||||
LIBGME_LDFLAGS=-L../libs/gme/win32 -lgme
|
LIBGME_LDFLAGS=-L../libs/gme/win32 -lgme
|
||||||
SDL_CFLAGS?=-I../libs/SDL2/i686-w64-mingw32/include/SDL2 -I../libs/SDLMixerX/i686-w64-mingw32/include -Dmain=SDL_main
|
SDL_CFLAGS?=-I../libs/SDL2/i686-w64-mingw32/include/SDL2 -I../libs/SDLMixerX/i686-w64-mingw32/include/SDL2 -Dmain=SDL_main
|
||||||
SDL_LDFLAGS?=-L../libs/SDL2/i686-w64-mingw32/lib -L../libs/SDLMixerX/i686-w64-mingw32/lib -lmingw32 -lSDL2main -lSDL2 -mwindows
|
SDL_LDFLAGS?=-L../libs/SDL2/i686-w64-mingw32/lib -L../libs/SDLMixerX/i686-w64-mingw32/lib -lmingw32 -lSDL2main -lSDL2 -mwindows
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue