1Import('*') 2 3env = drienv.Clone() 4 5if env['suncc']: 6 print 'warning: not building dri-vmwgfx' 7 Return() 8 9if env['build'] == 'release': 10 env.Append(CPPDEFINES = ['GALLIUM_RBUG']) 11 env.Prepend(LIBS = [rbug]) 12else: 13 env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_GALAHAD', 'GALLIUM_SOFTPIPE']) 14 env.Prepend(LIBS = [trace, rbug, galahad, softpipe, ws_wrapper]) 15 16 17env.Prepend(LIBS = [ 18 st_dri, 19 svgadrm, 20 svga, 21 mesa, 22 glsl, 23 gallium, 24 COMMON_DRI_DRM_OBJECTS 25]) 26 27module = env.LoadableModule( 28 target = 'vmwgfx_dri.so', 29 source = 'target.c', 30 SHLIBPREFIX = '', 31) 32 33env.Alias('dri-vmwgfx', module) 34