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