Home | History | Annotate | Download | only in graw
      1 Import('*')
      2 
      3 env = env.Clone()
      4 
      5 env.Prepend(LIBS = [gallium])
      6 
      7 env.Prepend(LIBPATH = [graw.dir])
      8 env.Prepend(LIBS = ['graw'])
      9     
     10 
     11 if env['platform'] in ('freebsd8', 'sunos'):
     12     env.Append(LIBS = ['m'])
     13 
     14 if env['platform'] == 'freebsd8':
     15     env.Append(LIBS = ['pthread'])
     16 
     17 progs = [
     18     'clear',
     19     'fs-fragcoord',
     20     'fs-frontface',
     21     'fs-test',
     22     'fs-write-z',
     23     'gs-test',
     24     'occlusion-query',
     25     'quad-sample',
     26     'quad-tex',
     27     'shader-leak',
     28     'tex-srgb',
     29     'tex-swizzle',
     30     'tri',
     31     'tri-gs',
     32     'tri-instanced',
     33     'vs-test',
     34 ]
     35 
     36 for name in progs:
     37     program = env.Program(
     38         target = name,
     39         source = name + '.c',
     40     )
     41     #env.Depends(program, graw)
     42     env.Alias('graw-progs', program)
     43