Sam Hocevar
a1ef3552bc
No longer look for SDL/SDL*.h headers.
We now just look for SDL2/SDL.h (the regular location) and SDL.h (when
the user provides their own location for this header).
5 years ago
Sam Hocevar
a18ccb3987
build: drop support for SDL v1.
The only reason we had to keep this was for emscripten builds. We can
now use SDL v2 using “emconfigure ./configure CFLAGS="-s USE_SDL=2” and
a few additional flags.
SDL_Mixer v2 is not available in emscripten packages but either it will
be added at some time, or I will get rid of it altogether. An alternate
solution could be this code snippet I found:
cd SDL2_mixer
emconfigure ./configure --prefix=$(pwd)/dist --enable-music-ogg --disable-music-ogg-shared CFLAGS="-s USE_VORBIS=1"
emmake make install
6 years ago
Sam Hocevar
5b21579db4
Add --disable-opengl flag.
This flag disables GL, GLES, but also Glew and EGL libraries.
7 years ago
Sam Hocevar
7be150b0e4
Allow to build without SDL or ffmpeg.
Linux-only for now. This will be necessary for projects that do not
actually use the rendering engine, such as LolRemez.
7 years ago
Sam Hocevar
c6f4070e70
build: refactor autotools files for out-of-tree builds.
All these changes will allow us to more easily add Lol Engine as a
submodule of another Git project.
8 years ago
Sam Hocevar
4bd6538a87
Fix a bug in SDL detection causing false positives.
If SDL_CFLAGS is defined to a non-empty value, even spaces, a later
test will wrongly succeed and think SDL_CFLAGS is a user override.
9 years ago
Sam Hocevar
7934df34ef
build: "USE_SDL" is now for SDL v2 and "USE_OLD_SDL" for version 1.
10 years ago
Sam Hocevar
7d8e75b029
build: fix SDL2 library names.
10 years ago
Sam Hocevar
7d4a58021f
build: use SDL2 on Windows.
10 years ago
Sam Hocevar
d37d124849
sdl: SDL2 video and audio support (no input yet).
10 years ago
Sam Hocevar
5b8afad60a
build: minor tweaks for emscripten builds.
11 years ago
Sam Hocevar
f852e8d7e1
build: a lot more emscripten build fixes.
11 years ago
Sam Hocevar
32753fa130
build: fix a few macro logic issues in SDL.h inclusion.
12 years ago
Sam Hocevar
1e973c81bd
build: add SDL detection code in new file lol-sdl.m4. The SDL2 version is
disabled until the engine code itself is ported to SDL2.
12 years ago