1 ################################################################################
2 # Desc: SDL2 Build Data
5 ################################################################################
6 # SDL2 natively supports transpiling (well, almost)
7 ################################################################################
9 HGADDR
:= https
://hg.libsdl.org
/SDL
12 # Ensure we have our other libraries, and their associated
13 # accutrements (like jpeg/tiff, etc from SDL2_image)
14 LIBDEPS
:= SDL2_image SDL2_ttf SDL2_net
15 # Modifications to the build process when using specific compilers
17 $(eval CONFIGURE
+= --enable-joystick
=no
)
18 $(eval CONFIGURE
+= --enable-pthreads
=no
)
19 $(eval CONFIGURE
+= --enable-threads
=no
)
20 MKCMD
:= $(subst make
, emmake make
,$(MKCMD
))
21 CONFIGURE
:= $(subst .
/configure
, emconfigure .
/configure
,$(CONFIGURE
))
26 $(eval
$(call
$(c_C
)MOD
))