remove linking SDL code
This commit is contained in:
parent
460ceaef97
commit
fca639ad84
|
@ -32,13 +32,9 @@ ifneq ($(NATIVE_ZLIB),)
|
||||||
WANT_ZLIB = 0
|
WANT_ZLIB = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_SDL2), 1)
|
|
||||||
DEFINES += -DHAVE_SDL2
|
|
||||||
endif
|
|
||||||
|
|
||||||
#if you compile with SDL2 flag add this Emscripten flag "-s USE_SDL=2" to LDFLAGS:
|
#if you compile with SDL2 flag add this Emscripten flag "-s USE_SDL=2" to LDFLAGS:
|
||||||
|
|
||||||
LIBS := -s USE_SDL=2 -s USE_ZLIB=1
|
LIBS := -s USE_ZLIB=1
|
||||||
LDFLAGS := -L. --no-heap-copy -s USE_ZLIB=1 -s TOTAL_MEMORY=$(MEMORY) -s NO_EXIT_RUNTIME=0 \
|
LDFLAGS := -L. --no-heap-copy -s USE_ZLIB=1 -s TOTAL_MEMORY=$(MEMORY) -s NO_EXIT_RUNTIME=0 \
|
||||||
-s EXPORTED_FUNCTIONS="['_main', '_malloc', '_cmd_savefiles', '_cmd_save_state', '_cmd_load_state', '_cmd_take_screenshot']" \
|
-s EXPORTED_FUNCTIONS="['_main', '_malloc', '_cmd_savefiles', '_cmd_save_state', '_cmd_load_state', '_cmd_take_screenshot']" \
|
||||||
--js-library emscripten/library_rwebaudio.js \
|
--js-library emscripten/library_rwebaudio.js \
|
||||||
|
@ -51,6 +47,11 @@ ifeq ($(ASYNC), 1)
|
||||||
LDFLAGS += -s ASYNCIFY=$(ASYNC)
|
LDFLAGS += -s ASYNCIFY=$(ASYNC)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAVE_SDL2), 1)
|
||||||
|
LIBS += -s USE_SDL=2
|
||||||
|
DEFINES += -DHAVE_SDL2
|
||||||
|
endif
|
||||||
|
|
||||||
include Makefile.common
|
include Makefile.common
|
||||||
|
|
||||||
CFLAGS += -Ideps/libz -Ideps -Ideps/stb
|
CFLAGS += -Ideps/libz -Ideps -Ideps/stb
|
||||||
|
|
Loading…
Reference in New Issue