-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.emcc.win.build
49 lines (40 loc) · 1.87 KB
/
build.emcc.win.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
cc = emcc
cmd = cmd /c
objExt = bc
appExt = html
objLib = bc
sep = /
rule obj
command = ${cmd} ${cc} -c $in -o $out -s USE_SDL_TTF=2 -s USE_SDL_TTF=2 -s USE_SDL=2 -s USE_SDL_IMAGE=2 -O2 -DPLATFORM_EMCC
rule exe
command = ${cmd} ${cc} $in -o $out -s USE_SDL_TTF=2 -s USE_SDL=2 -s USE_SDL_IMAGE=2 -O2
rule exeExt
command = ${cmd} ${cc} $in -o $out -s USE_SDL=2 -s USE_SDL_TTF=2 -s USE_SDL_IMAGE=2 --preload-file assets -O2 --use-preload-plugins
# command = ${cmd} ${cc} $in -o $out -s USE_SDL=2 -s USE_SDL_TTF=2 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS='["png"] --preload-file assets -O2
rule obj01
command = ${cmd} ${cc} -c $in -o $out -s USE_SDL_TTF=1 -s USE_SDL_TTF=1 -s USE_SDL=1 -s USE_SDL_IMAGE=1 -O2 -DPLATFORM_EMCC
rule exe01
command = ${cmd} ${cc} $in -o $out -s USE_SDL_TTF=1 -s USE_SDL=1 -s USE_SDL_IMAGE=1 -O2
rule exeExt01
command = ${cmd} ${cc} $in -o $out -s USE_SDL=1 -s USE_SDL_TTF=1 -s USE_SDL_IMAGE=1 --preload-file assets -O2 --use-preload-plugins
# command = ${cc} $in -o $out -s USE_SDL=1 -s USE_SDL_TTF=1 -s USE_SDL_IMAGE=1 --preload-file assets -O2 -s STB_IMAGE=1
subninja sdl2_gl${sep}build.ninja
subninja sdl2_gl_triangle${sep}build.ninja
subninja sdl2_gl_texture${sep}build.ninja
subninja sdl2_gl_ttf${sep}build.ninja
subninja sdl2_gl_textureFromRGBSurface${sep}build.ninja
subninja sdl2_createWindow${sep}build.ninja
subninja sdl2_event${sep}build.ninja
subninja sdl2_image${sep}build.ninja
subninja sdl2_font${sep}build.ninja
subninja sdl2_mixer${sep}build.ninja
subninja sdl1_createWindow${sep}build.ninja
subninja sdl1_event${sep}build.ninja
subninja sdl1_image${sep}build.ninja
subninja sdl1_mixer${sep}build.ninja
subninja sdl1_font${sep}build.ninja
subninja sdl1_gl${sep}build.ninja
subninja sdl1_gl_triangle${sep}build.ninja
subninja sdl1_gl_texture${sep}build.ninja
subninja sdl1_gl_ttf${sep}build.ninja
subninja sdl1_gl_textureFromRGBSurface${sep}build.ninja