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