trivial: add line-flat.c
[mesa.git] / progs / trivial / SConscript
1 Import('env')
2
3 if not env['GLUT']:
4 Return()
5
6 env = env.Clone()
7
8 env.Prepend(LIBS = ['$GLUT_LIB'])
9
10 progs = [
11 'clear-fbo-tex',
12 'clear-fbo',
13 'clear-scissor',
14 'clear-undefined',
15 'clear-repeat',
16 'clear',
17 'dlist-dangling',
18 'dlist-edgeflag-dangling',
19 'dlist-edgeflag',
20 'dlist-degenerate',
21 'drawarrays',
22 'draw2arrays',
23 'drawelements',
24 'drawrange',
25 'flat-clip',
26 'fs-tri',
27 'line-clip',
28 'line-cull',
29 'line-flat',
30 'line-smooth',
31 'line-stipple-wide',
32 'line-userclip-clip',
33 'line-userclip-nop-clip',
34 'line-userclip-nop',
35 'line-userclip',
36 'line-wide',
37 'line',
38 'lineloop-clip',
39 'lineloop-elts',
40 'lineloop',
41 'linestrip-flat-stipple',
42 'linestrip-stipple-wide',
43 'linestrip-stipple',
44 'linestrip',
45 'long-fixed-func',
46 'pgon-mode',
47 'point-clip',
48 'point-param',
49 'point-sprite',
50 'point-wide',
51 'point-wide-smooth',
52 'point',
53 'poly-flat',
54 'poly-flat-clip',
55 'poly-flat-unfilled-clip',
56 'poly-unfilled',
57 'poly',
58 'quad-clip-all-vertices',
59 'quad-clip-nearplane',
60 'quad-clip',
61 'quad-degenerate',
62 'quad-flat',
63 'quad-offset-factor',
64 'quad-offset-unfilled',
65 'quad-offset-units',
66 'quad-tex-2d',
67 'quad-tex-3d',
68 'quad-tex-alpha',
69 'quad-tex-pbo',
70 'quad-tex-sub',
71 'quad-unfilled-clip',
72 'quad-unfilled-stipple',
73 'quad-unfilled',
74 'quad',
75 'quads',
76 'quadstrip-clip',
77 'quadstrip-cont',
78 'quadstrip-flat',
79 'quadstrip',
80 'tri-alpha',
81 'tri-blend-color',
82 'tri-blend-max',
83 'tri-blend-min',
84 'tri-blend-revsub',
85 'tri-blend-sub',
86 'tri-blend',
87 'tri-clip',
88 'tri-clear',
89 'tri-cull-both',
90 'tri-cull',
91 'tri-dlist',
92 'tri-edgeflag',
93 'tri-fbo-tex-mip',
94 'tri-fbo-tex',
95 'tri-fbo',
96 'tri-flat-clip',
97 'tri-flat',
98 'tri-fog',
99 'tri-fp',
100 'tri-fp-const-imm',
101 'tri-lit',
102 'tri-logicop-none',
103 'tri-logicop-xor',
104 'tri-mask-tri',
105 'tri-orig',
106 'tri-query',
107 'tri-repeat',
108 'tri-scissor-tri',
109 'tri-stencil',
110 'tri-stipple',
111 'tri-multitex-vbo',
112 'tri-tex',
113 'tri-tex-3d',
114 'tri-tri',
115 'tri-unfilled-fog',
116 'tri-unfilled-edgeflag',
117 'tri-unfilled-clip',
118 'tri-unfilled-smooth',
119 'tri-unfilled-tri',
120 'tri-unfilled-tri-lit',
121 'tri-unfilled-userclip-stip',
122 'tri-unfilled-userclip',
123 'tri-unfilled',
124 'tri-userclip',
125 'tri-viewport',
126 'tri-z-eq',
127 'tri-z',
128 'tri',
129 'trifan-flat',
130 'trifan-flat-clip',
131 'trifan-flat-unfilled-clip',
132 'trifan-unfilled',
133 'trifan',
134 'tristrip-clip',
135 'tristrip-flat',
136 'tristrip',
137 'vbo-drawarrays',
138 'vbo-drawelements',
139 'vbo-drawrange',
140 'vp-array',
141 'vp-array-int',
142 'vp-clip',
143 'vp-line-clip',
144 'vp-tri',
145 'vp-tri-swap',
146 'vp-tri-tex',
147 'vp-tri-imm',
148 'vp-tri-cb',
149 'vp-tri-cb-pos',
150 'vp-tri-cb-tex',
151 'vp-unfilled',
152 ]
153
154 for prog in progs:
155 prog = env.Program(
156 target = prog,
157 source = prog + '.c',
158 )
159
160 # auto code generation
161 #getprocaddress: getprocaddress.c getproclist.h
162
163 #getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
164 # python getprocaddress.py > getproclist.h
165
166
167 #readtex.h: $(TOP)/progs/util/readtex.h
168 # ln -s $(TOP)/progs/util/readtex.h .
169
170 #readtex.c: $(TOP)/progs/util/readtex.c
171 # ln -s $(TOP)/progs/util/readtex.c .
172
173
174 #extfuncs.h: $(TOP)/progs/util/extfuncs.h
175 # cp $< .