Mesa (master): scons: Always build trace driver

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Feb 25 17:10:28 UTC 2010


Module: Mesa
Branch: master
Commit: db2e1518ff4ecb4a394076321ea5cdda3483ccbe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db2e1518ff4ecb4a394076321ea5cdda3483ccbe

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Feb 25 17:02:52 2010 +0000

scons: Always build trace driver

There are so many state trackers and winsys that rely on it for debug
building, and trace can really build anywhere and is thin so there's no
point is making it an option.

Based on  Xavier Chantry <chantry.xavier at gmail.com>'s patch:

"I also removed the trace check in xlib SConscript which is now useless, and
that script seems to deal with the cell driver, so I added cell in the check
for supported drivers."

---

 SConstruct                         |    4 ++++
 src/gallium/winsys/xlib/SConscript |    6 +-----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/SConstruct b/SConstruct
index ea63b90..e1c4a18 100644
--- a/SConstruct
+++ b/SConstruct
@@ -110,6 +110,10 @@ Export([
 #######################################################################
 # Environment setup
 
+# Always build trace driver
+if 'trace' not in env['drivers']:
+    env['drivers'].append('trace')
+
 # Includes
 env.Append(CPPPATH = [
 	'#/include',
diff --git a/src/gallium/winsys/xlib/SConscript b/src/gallium/winsys/xlib/SConscript
index a4dabb7..8c9d318 100644
--- a/src/gallium/winsys/xlib/SConscript
+++ b/src/gallium/winsys/xlib/SConscript
@@ -14,11 +14,7 @@ if env['dri']:
     print 'warning: DRI enabled: skipping build of xlib libGL.so'
     Return()
 
-if 'trace' not in env['drivers']:
-    print 'warning: trace pipe driver disabled: skipping build of xlib libGL.so'
-    Return()
-
-if not set(('softpipe', 'llvmpipe', 'trace')).intersection(env['drivers']):
+if not set(('softpipe', 'llvmpipe', 'cell')).intersection(env['drivers']):
     print 'warning: no supported pipe driver: skipping build of xlib libGL.so'
     Return()
 




More information about the mesa-commit mailing list