Add HAVE_BUILTIN_AUTOCONFIG for SDL2/Emscripten

This commit is contained in:
twinaphex 2016-09-03 07:04:23 +02:00
parent 49d52b8ca2
commit ba52d6728a

View File

@ -6,7 +6,7 @@ EOPTS = $(addprefix -s $(EMPTY), $(EOPT)) # Add '-s ' to each option
OS = Emscripten
OBJ :=
DEFINES := -DRARCH_INTERNAL -DHAVE_OVERLAY -DHAVE_MAIN
DEFINES += -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_EGL -DHAVE_OVERLAY -DHAVE_GLSL -DHAVE_FILTERS_BUILTIN
DEFINES += -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_EGL -DHAVE_OVERLAY -DHAVE_GLSL -DHAVE_FILTERS_BUILTIN
HAVE_EGL = 1
HAVE_OPENGL = 1
@ -30,7 +30,7 @@ ifneq ($(NATIVE_ZLIB),)
endif
ifeq ($(HAVE_SDL2), 1)
DEFINES += -DHAVE_SDL2
DEFINES += -DHAVE_SDL2 -DHAVE_BUILTIN_AUTOCONFIG
endif
#if you compile with SDL2 flag add this Emscripten flag "-s USE_SDL=2" to LDFLAGS: