Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #######################################################################
  2. # SConscript for dri state_tracker
  3.  
  4. Import('*')
  5.  
  6. env = env.Clone()
  7.  
  8. # XXX: If HAVE_DRI2
  9. env.PkgUseModules(['DRM'])
  10. # else
  11. #env.Append(CPPDEFINES = [('__NOT_HAVE_DRM_H', '1')])
  12.  
  13. env.Append(CPPPATH = [
  14.     '#/src',
  15.     '#/src/mapi',
  16.     '#/src/mesa',
  17.     '#/src/mesa/drivers/dri/common',
  18.     xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
  19. ])
  20.  
  21. env.Append(CPPDEFINES = [
  22.     ('GALLIUM_STATIC_TARGETS', '1'),
  23.     'GALLIUM_SOFTPIPE',
  24. ])
  25.  
  26. sources = env.ParseSourceList('Makefile.sources', 'common_SOURCES')
  27.  
  28. # XXX: if HAVE_DRISW
  29. sources.append(env.ParseSourceList('Makefile.sources', 'drisw_SOURCES'))
  30.  
  31. # XXX: if HAVE_DRI2
  32. sources.append(env.ParseSourceList('Makefile.sources', 'dri2_SOURCES'))
  33.  
  34. st_dri = env.ConvenienceLibrary(
  35.     target = 'st_dri',
  36.     source = sources
  37. )
  38. Export('st_dri')
  39.