Merge commit 'origin/gallium-0.1'
[mesa.git] / progs / demos / SConscript
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 'arbfplight',
23 'arbfslight',
24 'arbocclude',
25 'bounce',
26 'clearspd',
27 'copypix',
28 'cubemap',
29 'drawpix',
30 'engine',
31 'fbo_firecube',
32 'fire',
33 'fogcoord',
34 'fplight',
35 'fslight',
36 'gamma',
37 'gearbox',
38 'gears',
39 'geartrain',
40 'glinfo',
41 'gloss',
42 'glslnoise',
43 'gltestperf',
44 'glutfx',
45 'isosurf',
46 'ipers',
47 'lodbias',
48 'morph3d',
49 'multiarb',
50 'paltex',
51 'pointblast',
52 'ray',
53 'readpix',
54 'reflect',
55 'renormal',
56 'shadowtex',
57 'singlebuffer',
58 'streaming_rect',
59 'spectex',
60 'spriteblast',
61 'stex3d',
62 'teapot',
63 'terrain',
64 'tessdemo',
65 'texcyl',
66 'texdown',
67 'texenv',
68 'texobj',
69 'textures',
70 'trispd',
71 'tunnel',
72 'tunnel2',
73 'vao_demo',
74 'winpos',
75 ]
76
77 for prog in progs:
78 env.Program(
79 target = prog,
80 source = prog + '.c',
81 )
82
83 env.Program(
84 target = 'rain',
85 source = [
86 'rain.cxx',
87 'particles.cxx',
88 ]
89 )