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