mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 01:58:24 +02:00
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.
35 lines
604 B
Python
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)
|