-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.mingw.ninja
44 lines (38 loc) · 1.43 KB
/
build.mingw.ninja
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
cc = gcc
cmd = cmd /c
objExt = o
appExt = exe
objLib = a
sep = /
incSDL2 = C:\mingw_dev_lib\include\SDL2
incSDL2Image = C:\mingw_dev_lib\include\SDL2
incSDL2TTF =
incSDL2Mixer =
libSDL2 = C:\mingw_dev_lib\lib
libSDL2Image = C:\mingw_dev_lib\lib
libSDL2TTF =
libSDL2Mixer =
incSDL =
incSDLImage =
incSDLTTF =
incSDLMixer =
libSDL =
libSDLImage =
libSDLTTF =
libSDLMixer =
rule obj
command = ${cc} -c $in -o $out -LC:\MinGW\lib -I${incSDL2} -DPLATFORM_MINGW -IC:\mingw_dev_lib\include\GL -DGLEW_BUILD -DPLATFORM_MINGW
rule exe
command = ${cc} $in -o $out -IC:\MinGW\indclude -LC:\MinGW\lib -I${incSDL2} -L${libSDL2} -I${incSDL2Image} -L${libSDL2Image} -w -Wl,-subsystem,windows -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -lopengl32 -lglew32 -lglew32.dll
rule exeExt
command = ${cc} $in -o $out -IC:\MinGW\indclude -LC:\MinGW\lib -I${incSDL2} -L${libSDL2} -I${incSDL2Image} -L${libSDL2Image} -w -Wl,-subsystem,windows -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -lopengl32 -lglew32 -lglew32.dll
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_event${sep}build.ninja
subninja sdl2_createWindow${sep}build.ninja
subninja sdl2_image${sep}build.ninja
subninja sdl2_font${sep}build.ninja
subninja sdl2_mixer${sep}build.ninja