blob: 6a9ffafe5096d90cb4e06fa7a851d037e09f0fd6 [file] [log] [blame]
José Fonseca72ebf4f2008-11-21 03:40:48 +09001Import('env')
2
3if not env['GLUT']:
4 Return()
5
6env = env.Clone()
7
8env.Prepend(LIBS = ['$GLUT_LIB'])
9
10progs = [
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',
Keith Whitwellf16da8d2009-03-12 17:21:26 +000022 'draw2arrays',
José Fonseca72ebf4f2008-11-21 03:40:48 +090023 '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',
Jakob Bornecrantz87bcb322009-03-18 17:15:40 +010069 'quad-tex-sub',
José Fonseca72ebf4f2008-11-21 03:40:48 +090070 'quad-unfilled-clip',
71 'quad-unfilled-stipple',
72 'quad-unfilled',
73 'quad',
74 'quads',
Jakob Bornecrantzec2e4e12009-02-14 09:39:52 +010075 'quadstrip-clip',
José Fonseca72ebf4f2008-11-21 03:40:48 +090076 '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',
José Fonsecaeb1f01a2009-01-14 11:36:14 +000087 'tri-clear',
José Fonseca72ebf4f2008-11-21 03:40:48 +090088 'tri-cull-both',
89 'tri-cull',
90 'tri-dlist',
91 'tri-edgeflag',
Jakob Bornecrantzae36fad2009-03-17 15:04:07 +010092 'tri-fbo-tex-mip',
José Fonseca72ebf4f2008-11-21 03:40:48 +090093 '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',
Keith Whitwell225de012009-03-10 11:39:41 +0000101 'tri-logicop-none',
102 'tri-logicop-xor',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900103 'tri-mask-tri',
104 'tri-orig',
105 'tri-query',
106 'tri-repeat',
107 'tri-scissor-tri',
108 'tri-stencil',
Keith Whitwell48b1fe12009-03-09 15:00:31 +0000109 'tri-stipple',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900110 'tri-tex',
111 'tri-tex-3d',
112 'tri-tri',
Jakob Bornecrantzb5703162009-02-13 21:17:39 +0100113 'tri-unfilled-fog',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900114 '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',
Jakob Bornecrantzbd2f9212009-02-21 11:58:48 +0100123 'tri-viewport',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900124 '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
152for 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 $< .