-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.ninja
133 lines (130 loc) · 5.72 KB
/
build.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
cc = g++
ccflags = -Wall -s -march=native
linux = $ccflags `sdl2-config --cflags --libs`
windows = $ccflags -Dmain=SDL_main -lmingw32 -lSDL2main -lSDL2 -mwindows
builddir = build
srcdir = src
rule cc
command = $cc $in $linux -o $out
# command = $cc $in $windows -o $out.
description = Building executable $out
build $builddir/blobs: cc $srcdir/blobs.cpp
build $builddir/bump: cc $srcdir/bump.cpp
build $builddir/conio: cc $srcdir/conio.cpp
build $builddir/distort: cc $srcdir/distort.cpp
build $builddir/distortlogo: cc $srcdir/distortlogo.cpp
build $builddir/dotball: cc $srcdir/dotball.cpp
build $builddir/dotflag: cc $srcdir/dotflag.cpp
build $builddir/dotmorph: cc $srcdir/dotmorph.cpp
build $builddir/dottorus: cc $srcdir/dottorus.cpp
build $builddir/dottorus2: cc $srcdir/dottorus2.cpp
build $builddir/dottunnel: cc $srcdir/dottunnel.cpp
build $builddir/dottunnel2: cc $srcdir/dottunnel2.cpp
build $builddir/environcube: cc $srcdir/environcube.cpp
build $builddir/fade: cc $srcdir/fade.cpp
build $builddir/fire: cc $srcdir/fire.cpp
build $builddir/firecube: cc $srcdir/firecube.cpp
build $builddir/firelogo: cc $srcdir/firelogo.cpp
build $builddir/flatcube: cc $srcdir/flatcube.cpp
build $builddir/flatshadedcube: cc $srcdir/flatshadedcube.cpp
build $builddir/font: cc $srcdir/font.cpp
build $builddir/glenzcube: cc $srcdir/glenzcube.cpp
build $builddir/glenzshadedcube: cc $srcdir/glenzshadedcube.cpp
build $builddir/gouraudcube: cc $srcdir/gouraudcube.cpp
build $builddir/hiddenlinecube: cc $srcdir/hiddenlinecube.cpp
build $builddir/julia: cc $srcdir/julia.cpp
build $builddir/lens: cc $srcdir/lens.cpp
build $builddir/linedance: cc $srcdir/linedance.cpp
build $builddir/linedance2: cc $srcdir/linedance2.cpp
build $builddir/linedance3: cc $srcdir/linedance3.cpp
build $builddir/maskdemo: cc $srcdir/maskdemo.cpp
build $builddir/mandelbrot: cc $srcdir/mandelbrot.cpp
build $builddir/metaballs: cc $srcdir/metaballs.cpp
build $builddir/metaballs2: cc $srcdir/metaballs2.cpp
build $builddir/paint: cc $srcdir/paint.cpp
build $builddir/particles: cc $srcdir/particles.cpp
build $builddir/phongcube: cc $srcdir/phongcube.cpp
build $builddir/plane: cc $srcdir/plane.cpp
build $builddir/plasma: cc $srcdir/plasma.cpp
build $builddir/plasma2: cc $srcdir/plasma2.cpp
build $builddir/plasmacube: cc $srcdir/plasmacube.cpp
build $builddir/ripples: cc $srcdir/ripples.cpp
build $builddir/rototunnel: cc $srcdir/rototunnel.cpp
build $builddir/rotozoom: cc $srcdir/rotozoom.cpp
build $builddir/scroller: cc $srcdir/scroller.cpp
build $builddir/scrollercube: cc $srcdir/scrollercube.cpp
build $builddir/shadebobs: cc $srcdir/shadebobs.cpp
build $builddir/stars: cc $srcdir/stars.cpp
build $builddir/stars2: cc $srcdir/stars2.cpp
build $builddir/stars3: cc $srcdir/stars3.cpp
build $builddir/template_main: cc $srcdir/template_main.cpp
build $builddir/template_retromain: cc $srcdir/template_retromain.cpp
build $builddir/texturecube: cc $srcdir/texturecube.cpp
build $builddir/twister: cc $srcdir/twister.cpp
build $builddir/twister2: cc $srcdir/twister2.cpp
build $builddir/voxel: cc $srcdir/voxel.cpp
build $builddir/water: cc $srcdir/water.cpp
build $builddir/whitenoise: cc $srcdir/whitenoise.cpp
build $builddir/wirecube: cc $srcdir/wirecube.cpp
build $builddir/wormhole: cc $srcdir/wormhole.cpp
build $builddir/xorcircles: cc $srcdir/xorcircles.cpp
build blobs: phony $builddir/blobs
build bump: phony $builddir/bump
build conio: phony $builddir/conio
build distort: phony $builddir/distort
build distortlogo: phony $builddir/distortlogo
build dotball: phony $builddir/dotball
build dotflag: phony $builddir/dotflag
build dotmorph: phony $builddir/dotmorph
build dottorus: phony $builddir/dottorus
build dottorus2: phony $builddir/dottorus2
build dottunnel: phony $builddir/dottunnel
build dottunnel2: phony $builddir/dottunnel2
build environcube: phony $builddir/environcube
build fade: phony $builddir/fade
build fire: phony $builddir/fire
build firecube: phony $builddir/firecube
build firelogo: phony $builddir/firelogo
build flatcube: phony $builddir/flatcube
build flatshadedcube: phony $builddir/flatshadedcube
build font: phony $builddir/font
build glenzcube: phony $builddir/glenzcube
build glenzshadedcube: phony $builddir/glenzshadedcube
build gouraudcube: phony $builddir/gouraudcube
build hiddenlinecube: phony $builddir/hiddenlinecube
build julia: phony $builddir/julia
build lens: phony $builddir/lens
build linedance: phony $builddir/linedance
build linedance2: phony $builddir/linedance2
build linedance3: phony $builddir/linedance3
build maskdemo: phony $builddir/maskdemo
build mandelbrot: phony $builddir/mandelbrot
build metaballs: phony $builddir/metaballs
build metaballs2: phony $builddir/metaballs2
build paint: phony $builddir/paint
build particles: phony $builddir/particles
build phongcube: phony $builddir/phongcube
build plane: phony $builddir/plane
build plasma: phony $builddir/plasma
build plasma2: phony $builddir/plasma2
build plasmacube: phony $builddir/plasmacube
build ripples: phony $builddir/ripples
build rototunnel: phony $builddir/rototunnel
build rotozoom: phony $builddir/rotozoom
build scroller: phony $builddir/scroller
build scrollercube: phony $builddir/scrollercube
build shadebobs: phony $builddir/shadebobs
build stars: phony $builddir/stars
build stars2: phony $builddir/stars2
build stars3: phony $builddir/stars3
build template_main: phony $builddir/template_main
build template_retromain: phony $builddir/template_retromain
build texturecube: phony $builddir/texturecube
build twister: phony $builddir/twister
build twister2: phony $builddir/twister2
build voxel: phony $builddir/voxel
build water: phony $builddir/water
build whitenoise: phony $builddir/whitenoise
build wirecube: phony $builddir/wirecube
build wormhole: phony $builddir/wormhole
build xorcircles: phony $builddir/xorcircles