blob: 9a1f3575bdc9b65c951e744f67fdc2b7cee48371 [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',
Keith Whitwell4d548bd2009-04-29 14:21:41 +010029 'line-flat',
José Fonseca72ebf4f2008-11-21 03:40:48 +090030 'line-smooth',
31 'line-stipple-wide',
32 'line-userclip-clip',
33 'line-userclip-nop-clip',
34 'line-userclip-nop',
35 'line-userclip',
36 'line-wide',
37 'line',
38 'lineloop-clip',
39 'lineloop-elts',
40 'lineloop',
41 'linestrip-flat-stipple',
42 'linestrip-stipple-wide',
43 'linestrip-stipple',
44 'linestrip',
45 'long-fixed-func',
46 'pgon-mode',
47 'point-clip',
48 'point-param',
49 'point-sprite',
50 'point-wide',
51 'point-wide-smooth',
52 'point',
53 'poly-flat',
54 'poly-flat-clip',
55 'poly-flat-unfilled-clip',
56 'poly-unfilled',
57 'poly',
58 'quad-clip-all-vertices',
59 'quad-clip-nearplane',
60 'quad-clip',
61 'quad-degenerate',
62 'quad-flat',
63 'quad-offset-factor',
64 'quad-offset-unfilled',
65 'quad-offset-units',
66 'quad-tex-2d',
67 'quad-tex-3d',
68 'quad-tex-alpha',
69 'quad-tex-pbo',
Jakob Bornecrantz87bcb322009-03-18 17:15:40 +010070 'quad-tex-sub',
José Fonseca72ebf4f2008-11-21 03:40:48 +090071 'quad-unfilled-clip',
72 'quad-unfilled-stipple',
73 'quad-unfilled',
74 'quad',
75 'quads',
Jakob Bornecrantzec2e4e12009-02-14 09:39:52 +010076 'quadstrip-clip',
José Fonseca72ebf4f2008-11-21 03:40:48 +090077 'quadstrip-cont',
78 'quadstrip-flat',
79 'quadstrip',
80 'tri-alpha',
81 'tri-blend-color',
82 'tri-blend-max',
83 'tri-blend-min',
84 'tri-blend-revsub',
85 'tri-blend-sub',
86 'tri-blend',
87 'tri-clip',
José Fonsecaeb1f01a2009-01-14 11:36:14 +000088 'tri-clear',
José Fonseca72ebf4f2008-11-21 03:40:48 +090089 'tri-cull-both',
90 'tri-cull',
91 'tri-dlist',
92 'tri-edgeflag',
Jakob Bornecrantzae36fad2009-03-17 15:04:07 +010093 'tri-fbo-tex-mip',
José Fonseca72ebf4f2008-11-21 03:40:48 +090094 'tri-fbo-tex',
95 'tri-fbo',
96 'tri-flat-clip',
97 'tri-flat',
98 'tri-fog',
99 'tri-fp',
100 'tri-fp-const-imm',
101 'tri-lit',
Keith Whitwell225de012009-03-10 11:39:41 +0000102 'tri-logicop-none',
103 'tri-logicop-xor',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900104 'tri-mask-tri',
105 'tri-orig',
106 'tri-query',
107 'tri-repeat',
108 'tri-scissor-tri',
109 'tri-stencil',
Keith Whitwell48b1fe12009-03-09 15:00:31 +0000110 'tri-stipple',
Keith Whitwell2312f692009-03-24 15:27:21 +0000111 'tri-multitex-vbo',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900112 'tri-tex',
113 'tri-tex-3d',
114 'tri-tri',
Jakob Bornecrantzb5703162009-02-13 21:17:39 +0100115 'tri-unfilled-fog',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900116 'tri-unfilled-edgeflag',
117 'tri-unfilled-clip',
118 'tri-unfilled-smooth',
119 'tri-unfilled-tri',
120 'tri-unfilled-tri-lit',
121 'tri-unfilled-userclip-stip',
122 'tri-unfilled-userclip',
123 'tri-unfilled',
124 'tri-userclip',
Jakob Bornecrantzbd2f9212009-02-21 11:58:48 +0100125 'tri-viewport',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900126 'tri-z-eq',
127 'tri-z',
128 'tri',
129 'trifan-flat',
130 'trifan-flat-clip',
131 'trifan-flat-unfilled-clip',
132 'trifan-unfilled',
133 'trifan',
134 'tristrip-clip',
135 'tristrip-flat',
136 'tristrip',
137 'vbo-drawarrays',
Keith Whitwell5f2569a2009-04-30 12:35:59 +0100138 'vbo-noninterleaved',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900139 'vbo-drawelements',
140 'vbo-drawrange',
141 'vp-array',
142 'vp-array-int',
143 'vp-clip',
144 'vp-line-clip',
145 'vp-tri',
Keith Whitwell077c9042009-05-05 13:00:44 +0100146 'vp-tri-invariant',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900147 'vp-tri-swap',
148 'vp-tri-tex',
149 'vp-tri-imm',
150 'vp-tri-cb',
151 'vp-tri-cb-pos',
152 'vp-tri-cb-tex',
153 'vp-unfilled',
154]
155
156for prog in progs:
157 prog = env.Program(
158 target = prog,
159 source = prog + '.c',
160 )
161
162# auto code generation
163#getprocaddress: getprocaddress.c getproclist.h
164
165#getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
166# python getprocaddress.py > getproclist.h
167
168
169#readtex.h: $(TOP)/progs/util/readtex.h
170# ln -s $(TOP)/progs/util/readtex.h .
171
172#readtex.c: $(TOP)/progs/util/readtex.c
173# ln -s $(TOP)/progs/util/readtex.c .
174
175
176#extfuncs.h: $(TOP)/progs/util/extfuncs.h
177# cp $< .