svga: Trim the dri binary a bit on scons release builds
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 5 Jan 2012 16:14:13 +0000 (17:14 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 5 Jan 2012 16:23:32 +0000 (17:23 +0100)
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/targets/dri-vmwgfx/SConscript

index 17dd02105121688a724951e31a91b42de8021273..e758b493f892dceb58347f8b4ea7d930a4b6c472 100644 (file)
@@ -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,