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
hace 6 años
Sam Hocevar
5b21579db4
Add --disable-opengl flag.
This flag disables GL, GLES, but also Glew and EGL libraries.
hace 7 años
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.
hace 7 años
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.
hace 8 años
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.
hace 9 años
Sam Hocevar
7934df34ef
build: "USE_SDL" is now for SDL v2 and "USE_OLD_SDL" for version 1.
hace 10 años
Sam Hocevar
7d8e75b029
build: fix SDL2 library names.
hace 10 años
Sam Hocevar
7d4a58021f
build: use SDL2 on Windows.
hace 10 años
Sam Hocevar
d37d124849
sdl: SDL2 video and audio support (no input yet).
hace 10 años
Sam Hocevar
5b8afad60a
build: minor tweaks for emscripten builds.
hace 11 años
Sam Hocevar
f852e8d7e1
build: a lot more emscripten build fixes.
hace 11 años
Sam Hocevar
32753fa130
build: fix a few macro logic issues in SDL.h inclusion.
hace 12 años
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.
hace 12 años