mesa/src/gallium/tests/graw/SConscript
José Fonseca 601498ae73 scons: Revamp how to specify targets to build.
Use scons target and dependency system instead of ad-hoc options.

Now is simply a matter of naming what to build. For example:

  scons libgl-xlib

  scons libgl-gdi

  scons graw-progs

  scons llvmpipe

and so on. And there is also the possibility of scepcified subdirs, e.g.

  scons src/gallium/drivers

If nothing is specified then everything will be build.

There might be some rough corners over the next days. Please bare with me.
2010-11-01 13:30:22 +00:00

35 lines
604 B
Python

Import('*')
env = env.Clone()
env.Prepend(LIBS = [gallium])
env.Prepend(LIBPATH = [graw.dir])
env.Prepend(LIBS = ['graw'])
if env['platform'] in ('freebsd8', 'sunos5'):
env.Append(LIBS = ['m'])
if env['platform'] == 'freebsd8':
env.Append(LIBS = ['pthread'])
progs = [
'clear',
'tri',
'tri-instanced',
'quad-tex',
'fs-test',
'vs-test',
'gs-test',
'shader-leak',
'tri-gs',
]
for name in progs:
program = env.Program(
target = name,
source = name + '.c',
)
#env.Depends(program, graw)
env.Alias('graw-progs', program)