SConscript 622 Bytes
Newer Older
1 2 3 4
Import('*')

env = env.Clone()

5 6
env.Prepend(LIBS = [gallium])

7
env.Prepend(LIBPATH = [graw.dir])
8 9
env.Prepend(LIBS = ['graw'])
    
10

11
if env['platform'] in ('freebsd8', 'sunos'):
Vinson Lee's avatar
Vinson Lee committed
12 13
    env.Append(LIBS = ['m'])

14
if env['platform'] == 'freebsd8':
Vinson Lee's avatar
Vinson Lee committed
15 16
    env.Append(LIBS = ['pthread'])

17
progs = [
18
    'clear',
19
    'tri',
20
    'tri-instanced',
21
    'quad-tex',
22 23 24
    'fs-test',
    'vs-test',
    'gs-test',
25
    'shader-leak',
26
    'tri-gs',
27
    'quad-sample',
28 29
]

30 31 32 33
for name in progs:
    program = env.Program(
        target = name,
        source = name + '.c',
34
    )
35 36
    #env.Depends(program, graw)
    env.Alias('graw-progs', program)