scons: Always build softpipe and llvmpipe (when llvm available).
These are our reference software rasterizers. They can build everywhere and are a precious debugging tool. Making them always present immensily simplifies the scons logic. If people want to avoid building it is still possible to pass direcotries and target names to scons to narrow the build.
This commit is contained in:
@@ -14,10 +14,6 @@ if env['dri']:
|
||||
print 'warning: DRI enabled: skipping build of xlib libGL.so'
|
||||
Return()
|
||||
|
||||
if not set(('softpipe', 'llvmpipe', 'cell')).intersection(env['drivers']):
|
||||
print 'warning: no supported pipe driver: skipping build of xlib libGL.so'
|
||||
Return()
|
||||
|
||||
env = env.Clone()
|
||||
|
||||
env.Append(CPPPATH = [
|
||||
@@ -45,11 +41,11 @@ sources = [
|
||||
|
||||
env.Tool('x11')
|
||||
|
||||
if 'softpipe' in env['drivers']:
|
||||
if True:
|
||||
env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
|
||||
env.Prepend(LIBS = [softpipe])
|
||||
|
||||
if 'llvmpipe' in env['drivers']:
|
||||
if env['llvm']:
|
||||
env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
|
||||
env.Tool('udis86')
|
||||
env.Prepend(LIBS = [llvmpipe])
|
||||
|
Reference in New Issue
Block a user