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