blob: 9444cdbe7ed247bc4f0049b00da0d7bbd781219f [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',
69 'quad-unfilled-clip',
70 'quad-unfilled-stipple',
71 'quad-unfilled',
72 'quad',
73 'quads',
Jakob Bornecrantzec2e4e12009-02-14 09:39:52 +010074 'quadstrip-clip',
José Fonseca72ebf4f2008-11-21 03:40:48 +090075 'quadstrip-cont',
76 'quadstrip-flat',
77 'quadstrip',
78 'tri-alpha',
79 'tri-blend-color',
80 'tri-blend-max',
81 'tri-blend-min',
82 'tri-blend-revsub',
83 'tri-blend-sub',
84 'tri-blend',
85 'tri-clip',
José Fonsecaeb1f01a2009-01-14 11:36:14 +000086 'tri-clear',
José Fonseca72ebf4f2008-11-21 03:40:48 +090087 'tri-cull-both',
88 'tri-cull',
89 'tri-dlist',
90 'tri-edgeflag',
Jakob Bornecrantzae36fad2009-03-17 15:04:07 +010091 'tri-fbo-tex-mip',
José Fonseca72ebf4f2008-11-21 03:40:48 +090092 'tri-fbo-tex',
93 'tri-fbo',
94 'tri-flat-clip',
95 'tri-flat',
96 'tri-fog',
97 'tri-fp',
98 'tri-fp-const-imm',
99 'tri-lit',
Keith Whitwell225de012009-03-10 11:39:41 +0000100 'tri-logicop-none',
101 'tri-logicop-xor',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900102 'tri-mask-tri',
103 'tri-orig',
104 'tri-query',
105 'tri-repeat',
106 'tri-scissor-tri',
107 'tri-stencil',
Keith Whitwell48b1fe12009-03-09 15:00:31 +0000108 'tri-stipple',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900109 'tri-tex',
110 'tri-tex-3d',
111 'tri-tri',
Jakob Bornecrantzb5703162009-02-13 21:17:39 +0100112 'tri-unfilled-fog',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900113 'tri-unfilled-edgeflag',
114 'tri-unfilled-clip',
115 'tri-unfilled-smooth',
116 'tri-unfilled-tri',
117 'tri-unfilled-tri-lit',
118 'tri-unfilled-userclip-stip',
119 'tri-unfilled-userclip',
120 'tri-unfilled',
121 'tri-userclip',
Jakob Bornecrantzbd2f9212009-02-21 11:58:48 +0100122 'tri-viewport',
José Fonseca72ebf4f2008-11-21 03:40:48 +0900123 'tri-z-eq',
124 'tri-z',
125 'tri',
126 'trifan-flat',
127 'trifan-flat-clip',
128 'trifan-flat-unfilled-clip',
129 'trifan-unfilled',
130 'trifan',
131 'tristrip-clip',
132 'tristrip-flat',
133 'tristrip',
134 'vbo-drawarrays',
135 'vbo-drawelements',
136 'vbo-drawrange',
137 'vp-array',
138 'vp-array-int',
139 'vp-clip',
140 'vp-line-clip',
141 'vp-tri',
142 'vp-tri-swap',
143 'vp-tri-tex',
144 'vp-tri-imm',
145 'vp-tri-cb',
146 'vp-tri-cb-pos',
147 'vp-tri-cb-tex',
148 'vp-unfilled',
149]
150
151for prog in progs:
152 prog = env.Program(
153 target = prog,
154 source = prog + '.c',
155 )
156
157# auto code generation
158#getprocaddress: getprocaddress.c getproclist.h
159
160#getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
161# python getprocaddress.py > getproclist.h
162
163
164#readtex.h: $(TOP)/progs/util/readtex.h
165# ln -s $(TOP)/progs/util/readtex.h .
166
167#readtex.c: $(TOP)/progs/util/readtex.c
168# ln -s $(TOP)/progs/util/readtex.c .
169
170
171#extfuncs.h: $(TOP)/progs/util/extfuncs.h
172# cp $< .