Merge remote branch 'origin/nv50-compiler'
[mesa.git] / src / gallium / tests / graw / SConscript
1 Import('*')
2
3 try:
4 graw
5 except NameError:
6 print 'warning: graw library not avaiable: skipping build of graw test'
7 Return()
8
9 env = env.Clone()
10
11 env.Prepend(LIBPATH = [graw.dir])
12 env.Prepend(LIBS = ['graw'] + gallium)
13
14 if platform in ('freebsd8', 'sunos5'):
15 env.Append(LIBS = ['m'])
16
17 if platform == 'freebsd8':
18 env.Append(LIBS = ['pthread'])
19
20 progs = [
21 'clear',
22 'tri',
23 'tri-instanced',
24 'quad-tex',
25 'fs-test',
26 'vs-test',
27 'gs-test',
28 'shader-leak',
29 'tri-gs',
30 ]
31
32 for prog in progs:
33 env.Program(
34 target = prog,
35 source = prog + '.c',
36 )
37