merged
[henge/webcc.git] / make / SDL2.mk
1 ################################################################################
2 # Desc: SDL2 Build Data
3 # Author: Mihrtec LLC
4 # Date: 2016
5 ################################################################################
6 # SDL2 natively supports transpiling (well, almost)
7 ################################################################################
8 # Download location
9 HGADDR := https://hg.libsdl.org/SDL
10 # No autogen for SDL
11 undefine AUTOGEN
12 LIBDEPS := SDL2_image SDL2_ttf SDL2_net
13 LINK_ORDER :=
14 # Modifications to the build process when using specific compilers
15 define emccMOD =
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))
21 endef
22 define em++MOD =
23 $(call EMCCMOD)
24 endef
25 $(eval $(call $(c_C)MOD))