X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Ftargets%2Fdri-vmwgfx%2FSConscript;h=0d19944f5c0b72071bb63c7d89f73e9eefdf8011;hb=d4c3968c25885f6eb53dee4cc0c60d8d3f8fec32;hp=6a1f8827bc38f323810f0a5b5b2f6dd3a5b7b1f0;hpb=02224ec4e0de8072c9d730821f88e0a00212ff50;p=mesa.git diff --git a/src/gallium/targets/dri-vmwgfx/SConscript b/src/gallium/targets/dri-vmwgfx/SConscript index 6a1f8827bc3..0d19944f5c0 100644 --- a/src/gallium/targets/dri-vmwgfx/SConscript +++ b/src/gallium/targets/dri-vmwgfx/SConscript @@ -1,24 +1,33 @@ Import('*') -if not 'svga' in env['drivers']: - print 'warning: svga pipe driver not built skipping vmwgfx_dri.so' +env = drienv.Clone() + +if env['suncc']: + print 'warning: not building dri-vmwgfx' Return() -env = drienv.Clone() +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, svga, - trace, mesa, glsl, gallium, COMMON_DRI_DRM_OBJECTS ]) -env.LoadableModule( +module = env.LoadableModule( target = 'vmwgfx_dri.so', - source = 'dummy.c', + source = 'target.c', SHLIBPREFIX = '', ) + +env.Alias('dri-vmwgfx', module)