summaryrefslogtreecommitdiff
path: root/src/gallium/tests/graw/SConscript
blob: 7e39ec21a41a7321d1b159c57734042f4a0bd2cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Import('*')

try:
    graw
except NameError:
    print 'warning: graw library not avaiable: skipping build of graw test'
    Return()

env = env.Clone()

env.Prepend(LIBPATH = [graw.dir])
env.Prepend(LIBS = ['graw'] + gallium)

if platform == 'sunos5':
    env.Append(LIBS = ['m'])

progs = [
    'clear',
    'tri',
    'tri-instanced',
    'quad-tex',
    'fs-test',
    'vs-test',
    'gs-test',
    'tri-gs',
]

for prog in progs:
    env.Program(
        target = prog,
        source = prog + '.c',
    )