From: Jakob Bornecrantz Date: Thu, 5 Jan 2012 16:14:13 +0000 (+0100) Subject: svga: Trim the dri binary a bit on scons release builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc1d8a466a52ae89080f5dec06c1859235643532;p=mesa.git svga: Trim the dri binary a bit on scons release builds Signed-off-by: Jakob Bornecrantz --- diff --git a/src/gallium/targets/dri-vmwgfx/SConscript b/src/gallium/targets/dri-vmwgfx/SConscript index 17dd0210512..e758b493f89 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,