progs/util: Fix memory leak if malloc fails in tkRGBImageLoad.
[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 'gltestperf',
43 'ipers',
44 'isosurf',
45 'lodbias',
46 'morph3d',
47 'multiarb',
48 'paltex',
49 'pointblast',
50 'ray',
51 'readpix',
52 'reflect',
53 'renormal',
54 'shadowtex',
55 'singlebuffer',
56 'spectex',
57 'spriteblast',
58 'stex3d',
59 'teapot',
60 'terrain',
61 'tessdemo',
62 'texcyl',
63 'texenv',
64 'textures',
65 'trispd',
66 'tunnel',
67 'tunnel2',
68 'vao_demo',
69 'winpos',
70 'dinoshade',
71 'fbotexture',
72 'projtex',
73 ]
74
75 for prog in progs:
76 env.Program(
77 target = prog,
78 source = prog + '.c',
79 )
80
81 env.Program(
82 target = 'rain',
83 source = [
84 'rain.cxx',
85 'particles.cxx',
86 ]
87 )