Mesa (master): svga: Trim the dri binary a bit on scons release builds

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Thu Jan 5 16:25:06 UTC 2012


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

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Thu Jan  5 17:14:13 2012 +0100

svga: Trim the dri binary a bit on scons release builds

Signed-off-by: Jakob Bornecrantz <jakob at vmware.com>

---

 src/gallium/targets/dri-vmwgfx/SConscript |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/gallium/targets/dri-vmwgfx/SConscript b/src/gallium/targets/dri-vmwgfx/SConscript
index 17dd021..e758b49 100644
--- a/src/gallium/targets/dri-vmwgfx/SConscript
+++ b/src/gallium/targets/dri-vmwgfx/SConscript
@@ -2,10 +2,14 @@ Import('*')
 
 env = drienv.Clone()
 
-if True:
+if env['build'] == 'release':
+    env.Append(CPPDEFINES = ['GALLIUM_RBUG'])
+    env.Prepend(LIBS = [rbug])
+else:
     env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_GALAHAD', 'GALLIUM_SOFTPIPE'])
     env.Prepend(LIBS = [trace, rbug, galahad, softpipe, ws_wrapper])
 
+
 env.Prepend(LIBS = [
     st_dri,
     svgadrm,




More information about the mesa-commit mailing list