Merge commit 'origin/gallium-0.1' into gallium-0.2
[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-cont',
74 'quadstrip-flat',
75 'quadstrip',
76 'tri-alpha',
77 'tri-blend-color',
78 'tri-blend-max',
79 'tri-blend-min',
80 'tri-blend-revsub',
81 'tri-blend-sub',
82 'tri-blend',
83 'tri-clip',
84 'tri-cull-both',
85 'tri-cull',
86 'tri-dlist',
87 'tri-edgeflag',
88 'tri-fbo-tex',
89 'tri-fbo',
90 'tri-flat-clip',
91 'tri-flat',
92 'tri-fog',
93 'tri-fp',
94 'tri-fp-const-imm',
95 'tri-lit',
96 'tri-mask-tri',
97 'tri-orig',
98 'tri-query',
99 'tri-repeat',
100 'tri-scissor-tri',
101 'tri-stencil',
102 'tri-tex',
103 'tri-tex-3d',
104 'tri-tri',
105 'tri-unfilled-edgeflag',
106 'tri-unfilled-clip',
107 'tri-unfilled-smooth',
108 'tri-unfilled-tri',
109 'tri-unfilled-tri-lit',
110 'tri-unfilled-userclip-stip',
111 'tri-unfilled-userclip',
112 'tri-unfilled',
113 'tri-userclip',
114 'tri-z-eq',
115 'tri-z',
116 'tri',
117 'trifan-flat',
118 'trifan-flat-clip',
119 'trifan-flat-unfilled-clip',
120 'trifan-unfilled',
121 'trifan',
122 'tristrip-clip',
123 'tristrip-flat',
124 'tristrip',
125 'vbo-drawarrays',
126 'vbo-drawelements',
127 'vbo-drawrange',
128 'vp-array',
129 'vp-array-int',
130 'vp-clip',
131 'vp-line-clip',
132 'vp-tri',
133 'vp-tri-swap',
134 'vp-tri-tex',
135 'vp-tri-imm',
136 'vp-tri-cb',
137 'vp-tri-cb-pos',
138 'vp-tri-cb-tex',
139 'vp-unfilled',
140 ]
141
142 for prog in progs:
143 prog = env.Program(
144 target = prog,
145 source = prog + '.c',
146 )
147
148 # auto code generation
149 #getprocaddress: getprocaddress.c getproclist.h
150
151 #getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
152 # python getprocaddress.py > getproclist.h
153
154
155 #readtex.h: $(TOP)/progs/util/readtex.h
156 # ln -s $(TOP)/progs/util/readtex.h .
157
158 #readtex.c: $(TOP)/progs/util/readtex.c
159 # ln -s $(TOP)/progs/util/readtex.c .
160
161
162 #extfuncs.h: $(TOP)/progs/util/extfuncs.h
163 # cp $< .