1 ################################################################################
2 # Desc: SDL2 Build Data
5 ################################################################################
6 # SDL2 natively supports transpiling (well, almost)
7 ################################################################################
9 HGADDR
:= https
://hg.libsdl.org
/SDL
12 LIBDEPS
:= SDL2_image SDL2_ttf SDL2_net
14 # Modifications to the build process when using specific compilers
16 $(eval CONFIGURE
+= --enable-joystick
=no
)
17 $(eval CONFIGURE
+= --enable-pthreads
=no
)
18 $(eval CONFIGURE
+= --enable-threads
=no
)
19 MKCMD
:= $(subst make
, emmake make
,$(MKCMD
))
20 CONFIGURE
:= $(subst .
/configure
, emconfigure .
/configure
,$(CONFIGURE
))
25 $(eval
$(call
$(c_C
)MOD
))