From: Holger Schemel Date: Tue, 8 Feb 2022 09:18:30 +0000 (+0100) Subject: added support for MOD and MP3 music for Emscripten platform X-Git-Tag: 4.3.2.0~128 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=67114a026113259fe114dc3c1bced07f85da7ceb;p=rocksndiamonds.git added support for MOD and MP3 music for Emscripten platform --- diff --git a/src/Makefile b/src/Makefile index 2acbd109..694582fe 100644 --- a/src/Makefile +++ b/src/Makefile @@ -99,8 +99,8 @@ endif ifeq ($(TARGET),sdl2) # compiling for SDL2 target ifeq ($(PLATFORM),emscripten) -SDL_LIBS = -s USE_SDL_IMAGE=2 -s USE_SDL_MIXER=2 -s USE_SDL_NET=2 -s USE_ZLIB=1 -SDL_FMTS = -s SDL2_IMAGE_FORMATS='["bmp","png","pcx","xpm"]' +SDL_LIBS = -s USE_SDL_IMAGE=2 -s USE_SDL_MIXER=2 -s USE_SDL_NET=2 -s USE_MODPLUG=1 -s USE_MPG123=1 -s USE_ZLIB=1 +SDL_FMTS = -s SDL2_IMAGE_FORMATS='["bmp","png","pcx","xpm"]' -s SDL2_MIXER_FORMATS='["mod","mp3"]' EXTRA_CFLAGS = $(SDL_LIBS) EXTRA_LDFLAGS = $(SDL_FMTS) -s INITIAL_MEMORY=81920000 -s ALLOW_MEMORY_GROWTH=1 -s FORCE_FILESYSTEM -s NO_EXIT_RUNTIME=0 -s ASYNCIFY -O2 -lidbfs.js DATA_DIRS = conf docs levels graphics sounds music