-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.osx.ninja
63 lines (54 loc) · 2.71 KB
/
build.osx.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
cc = gcc
cmd =
objExt = o
appExt = exe
objLib = a
sep = /
incSDL2 = /usr/local/Cellar/sdl2/2.0.5/include/SDL2/
incSDL2Image = /usr/local/Cellar/sdl2_image/2.0.1_3/include/SDL2/
incSDL2TTF = /usr/local/Cellar/sdl2_ttf/2.0.14/include/SDL2/
incSDL2Mixer = /usr/local/Cellar/sdl2_mixer/2.0.1_1/include/SDL2/
libSDL2 = /usr/local/Cellar/sdl2/2.0.5/lib/
libSDL2Image = /usr/local/Cellar/sdl2_image/2.0.1_3/lib/
libSDL2TTF = /usr/local/Cellar/sdl2_ttf/2.0.14/lib
libSDL2Mixer = /usr/local/Cellar/sdl2_mixer/2.0.1_1/lib
incSDL = /usr/local/Cellar/sdl/1.2.15/include/SDL/
incSDLImage = /usr/local/Cellar/sdl_image/1.2.12_7/include/SDL/
incSDLTTF = /usr/local/Cellar/sdl_ttf/2.0.11_1/include/SDL/
incSDLMixer = /usr/local/Cellar/sdl_mixer/1.2.12_2/include/SDL/
libSDL = /usr/local/Cellar/sdl/1.2.15/lib
libSDLImage = /usr/local/Cellar/sdl_image/1.2.12_7/lib/
libSDLTTF = /usr/local/Cellar/sdl_ttf/2.0.11_1/lib/
libSDLMixer = /usr/local/Cellar/sdl_mixer/1.2.12_2/lib/
rule obj
command = ${cc} -c $in -o $out -O2 -I${incSDL2} -I${incSDL2Image} -I${incSDL2TTF} -I${incSDL2Mixer} -DPLATFORM_OSX
rule exe
command = ${cc} $in -o $out -O2 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -L${libSDL2} -L${libSDL2Image} -L${libSDL2TTF} -L${libSDL2Mixer} -framework OpenGL
rule exeExt
command = ${cc} $in -o $out -O2 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -L${libSDL2} -L${libSDL2Image} -L${libSDL2TTF} -L${libSDL2Mixer} -framework OpenGL
rule obj01
command = ${cc} -c $in -o $out -O2 -I${incSDL} -I${incSDLImage} -I${incSDLTTF} -I${incSDLMixer} -DPLATFORM_OSX
rule exe01
command = ${cc} $in -o $out -O2 -lSDLmain -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf -L${libSDL} -L${libSDLImage} -L${libSDLTTF} -L${libSDLMixer} -framework OpenGL -framework Cocoa
rule exeExt01
command = ${cc} $in -o $out -O2 -lSDLmain -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf -L${libSDL} -L${libSDLImage} -L${libSDLTTF} -L${libSDLMixer} -framework OpenGL -framework Cocoa
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
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