Keith Whitwell | b799af9 | 2009-06-29 14:13:58 +0100 | [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 | progs = [ | ||||
22 | 'array', | ||||
23 | 'bitmap', | ||||
24 | 'brick', | ||||
25 | 'bump', | ||||
26 | 'convolutions', | ||||
27 | 'deriv', | ||||
28 | 'fragcoord', | ||||
29 | 'identity', | ||||
30 | 'linktest', | ||||
31 | 'mandelbrot', | ||||
32 | 'multinoise', | ||||
33 | 'multitex', | ||||
34 | 'noise', | ||||
35 | 'noise2', | ||||
36 | 'pointcoord', | ||||
37 | 'points', | ||||
38 | 'samplers', | ||||
39 | 'shadow_sampler', | ||||
40 | 'skinning', | ||||
41 | 'texaaline', | ||||
42 | 'texdemo1', | ||||
43 | 'toyball', | ||||
44 | 'trirast', | ||||
45 | 'twoside', | ||||
46 | 'vert-or-frag-only', | ||||
47 | 'vert-tex', | ||||
48 | ] | ||||
49 | |||||
50 | for prog in progs: | ||||
51 | env.Program( | ||||
52 | target = prog, | ||||
53 | source = prog + '.c', | ||||
54 | ) | ||||
55 |