Home | History | Annotate | Download | only in xorg
      1 #######################################################################
      2 # SConscript for xorg state_tracker
      3 
      4 Import('*')
      5 
      6 env = env.Clone()
      7 
      8 env.Append(CPPPATH = [
      9     '#/src/mesa',
     10 ])
     11 
     12 env.PkgUseModules(['DRM', 'XORG'])
     13 
     14 if env['HAVE_KMS']:
     15     env.Append(CPPDEFINES = ['HAVE_LIBKMS'])
     16     env.PkgUseModules(['KMS'])
     17 
     18 conf = env.Configure()
     19 
     20 if conf.CheckHeader('X11/extensions/dpmsconst.h'):
     21     env.Append(CPPDEFINES = [('HAVE_XEXTPROTO_71', '1')])
     22 
     23 conf.Finish()
     24 
     25 sources = [
     26     'xorg_composite.c',
     27     'xorg_crtc.c',
     28     'xorg_dri2.c',
     29     'xorg_driver.c',
     30     'xorg_exa.c',
     31     'xorg_exa_tgsi.c',
     32     'xorg_output.c',
     33     'xorg_renderer.c',
     34     'xorg_xv.c',
     35     'xorg_xvmc.c',
     36 ]
     37 
     38 st_xorg = env.ConvenienceLibrary(
     39     target = 'st_xorg',
     40     source = sources,
     41 )
     42 Export('st_xorg')
     43