Keith Whitwell | a58065d | 2009-03-10 13:11:23 +0000 | [diff] [blame] | 1 | Import('*') |
2 | |||||
3 | if not env['GLUT']: | ||||
4 | Return() | ||||
5 | |||||
6 | env = env.Clone() | ||||
7 | |||||
8 | env.Prepend(CPPPATH = [ | ||||
9 | '../util', | ||||
10 | ]) | ||||
11 | |||||
12 | env.Prepend(LIBS = [ | ||||
13 | util, | ||||
14 | '$GLUT_LIB' | ||||
15 | ]) | ||||
16 | |||||
17 | if env['platform'] == 'windows': | ||||
18 | env.Append(CPPDEFINES = ['NOMINMAX']) | ||||
19 | env.Prepend(LIBS = ['winmm']) | ||||
20 | |||||
21 | linux_progs = [ | ||||
22 | 'api_speed', | ||||
23 | ] | ||||
24 | |||||
25 | glx_progs = [ | ||||
26 | 'auxbuffer', | ||||
27 | 'getprocaddress', | ||||
28 | 'jkrahntest', | ||||
29 | 'sharedtex', | ||||
30 | 'texcompress2', | ||||
31 | 'texobjshare', | ||||
32 | ] | ||||
33 | |||||
34 | mesa_progs = [ | ||||
35 | 'debugger', | ||||
36 | ] | ||||
37 | |||||
38 | progs = [ | ||||
39 | 'afsmultiarb', | ||||
40 | 'antialias', | ||||
41 | 'arbfpspec', | ||||
42 | 'arbfptest1', | ||||
43 | 'arbfptexture', | ||||
44 | 'arbfptrig', | ||||
45 | 'arbnpot-mipmap', | ||||
46 | 'arbnpot', | ||||
47 | 'arbvptest1', | ||||
48 | 'arbvptest3', | ||||
49 | 'arbvptorus', | ||||
50 | 'arbvpwarpmesh', | ||||
51 | 'arraytexture', | ||||
52 | 'blendminmax', | ||||
53 | 'blendsquare', | ||||
54 | 'blendxor', | ||||
55 | 'bufferobj', | ||||
56 | 'bug_3050', | ||||
57 | 'bug_3101', | ||||
58 | 'bug_3195', | ||||
59 | 'bug_texstore_i8', | ||||
60 | 'calibrate_rast', | ||||
61 | 'copypixrate', | ||||
62 | 'crossbar', | ||||
63 | 'cva', | ||||
64 | 'dinoshade', | ||||
65 | 'drawbuffers', | ||||
66 | 'exactrast', | ||||
67 | 'ext422square', | ||||
68 | 'fbotest1', | ||||
69 | 'fbotest2', | ||||
70 | 'fbotexture', | ||||
71 | 'fillrate', | ||||
72 | 'floattex', | ||||
73 | 'fog', | ||||
74 | 'fogcoord', | ||||
75 | 'fptest1', | ||||
76 | 'fptexture', | ||||
77 | 'interleave', | ||||
78 | 'invert', | ||||
79 | 'lineclip', | ||||
80 | 'manytex', | ||||
81 | 'mapbufrange', | ||||
82 | 'mapvbo', | ||||
83 | 'minmag', | ||||
Keith Whitwell | f02aaa8 | 2009-03-18 14:01:47 +0000 | [diff] [blame^] | 84 | 'mipgen', |
Keith Whitwell | a58065d | 2009-03-10 13:11:23 +0000 | [diff] [blame] | 85 | 'mipmap_limits', |
86 | 'mipmap_view', | ||||
87 | 'multipal', | ||||
88 | 'multitexarray', | ||||
89 | 'multiwindow', | ||||
90 | 'no_s3tc', | ||||
91 | 'packedpixels', | ||||
92 | 'pbo', | ||||
93 | 'prog_parameter', | ||||
94 | 'projtex', | ||||
95 | 'quads', | ||||
96 | 'random', | ||||
97 | 'readrate', | ||||
98 | 'rubberband', | ||||
99 | 'seccolor', | ||||
100 | 'shader_api', | ||||
101 | 'stencil_twoside', | ||||
102 | 'stencil_wrap', | ||||
103 | 'stencilwrap', | ||||
104 | 'subtex', | ||||
105 | 'subtexrate', | ||||
106 | 'tex1d', | ||||
107 | 'texcmp', | ||||
108 | 'texfilt', | ||||
109 | 'texgenmix', | ||||
110 | 'texline', | ||||
111 | 'texrect', | ||||
112 | 'texwrap', | ||||
113 | 'unfilledclip', | ||||
114 | 'vao-01', | ||||
115 | 'vao-02', | ||||
116 | 'vparray', | ||||
117 | 'vpeval', | ||||
118 | 'vptest1', | ||||
119 | 'vptest2', | ||||
120 | 'vptest3', | ||||
121 | 'vptorus', | ||||
122 | 'vpwarpmesh', | ||||
123 | 'yuvrect', | ||||
124 | 'yuvsquare', | ||||
125 | 'zcomp', | ||||
126 | 'zdrawpix', | ||||
127 | 'zreaddraw', | ||||
128 | ] | ||||
129 | |||||
130 | for prog in progs: | ||||
131 | env.Program( | ||||
132 | target = prog, | ||||
133 | source = prog + '.c', | ||||
134 | ) |