Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. Import('env')
  2.  
  3. #
  4. # Auxiliary modules
  5. #
  6.  
  7. SConscript('auxiliary/SConscript')
  8.  
  9. #
  10. # Drivers
  11. #
  12.  
  13. # These are common and work across all platforms
  14. SConscript([
  15.     'drivers/galahad/SConscript',
  16.     'drivers/identity/SConscript',
  17.     'drivers/llvmpipe/SConscript',
  18.     'drivers/rbug/SConscript',
  19.     'drivers/softpipe/SConscript',
  20.     'drivers/svga/SConscript',
  21.     'drivers/trace/SConscript',
  22. ])
  23.  
  24. if not env['msvc']:
  25.     # These drivers do not build on MSVC compilers
  26.     SConscript([
  27.         'drivers/i915/SConscript',
  28.     ])
  29.  
  30. #
  31. # State trackers
  32. #
  33.  
  34. # Needed by some state trackers
  35. SConscript('winsys/sw/null/SConscript')
  36.  
  37. if not env['embedded']:
  38.     SConscript('state_trackers/vega/SConscript')
  39.     if env['platform'] not in ('cygwin', 'darwin', 'haiku', 'sunos'):
  40.         SConscript('state_trackers/egl/SConscript')
  41.  
  42.     if env['x11']:
  43.         SConscript('state_trackers/glx/xlib/SConscript')
  44.  
  45.     if env['dri']:
  46.         SConscript('state_trackers/dri/SConscript')
  47.  
  48.     if env['dri'] and env['xorg']:
  49.         SConscript('state_trackers/xorg/SConscript')
  50.  
  51.     if env['platform'] == 'windows':
  52.         SConscript('state_trackers/wgl/SConscript')
  53.  
  54. #
  55. # Winsys
  56. #
  57.  
  58. SConscript([
  59.     'winsys/sw/wrapper/SConscript',
  60. ])
  61.    
  62. if env['x11']:
  63.     SConscript([
  64.         'winsys/sw/xlib/SConscript',
  65.     ])
  66.  
  67. if env['platform'] == 'windows':
  68.     SConscript([
  69.         'winsys/sw/gdi/SConscript',
  70.     ])
  71.  
  72. if not env['msvc']:
  73.     SConscript([
  74.         'winsys/i915/sw/SConscript',
  75.     ])
  76.  
  77. if env['platform'] == 'haiku':
  78.     SConscript([
  79.         'winsys/sw/hgl/SConscript',
  80.     ])
  81.  
  82. if env['dri']:
  83.     SConscript([
  84.         'winsys/sw/dri/SConscript',
  85.     ])
  86.  
  87.     SConscript([
  88.         'winsys/svga/drm/SConscript',
  89.     ])
  90.  
  91.     if env['drm_intel']:
  92.         SConscript([
  93.             'winsys/i915/drm/SConscript',
  94.         ])
  95.  
  96. #
  97. # Targets
  98. #
  99.  
  100. SConscript([
  101.     'targets/graw-null/SConscript',
  102. ])
  103.  
  104. if not env['embedded']:
  105.     if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'sunos'):
  106.         SConscript([
  107.             'targets/egl-static/SConscript'
  108.         ])
  109.  
  110.     if env['x11']:
  111.         SConscript([
  112.             'targets/graw-xlib/SConscript',
  113.             'targets/libgl-xlib/SConscript',
  114.         ])
  115.  
  116.     if env['platform'] == 'windows':
  117.         SConscript([
  118.             'targets/graw-gdi/SConscript',
  119.             'targets/libgl-gdi/SConscript',
  120.         ])
  121.  
  122.     if env['platform'] == 'haiku':
  123.         SConscript([
  124.             'targets/haiku-softpipe/SConscript',
  125.         ])
  126.  
  127.     if env['dri']:
  128.         SConscript([
  129.             'targets/SConscript.dri',
  130.             'targets/dri-swrast/SConscript',
  131.             'targets/dri-vmwgfx/SConscript',
  132.         ])
  133.         if env['drm_intel']:
  134.             SConscript([
  135.                 'targets/dri-i915/SConscript',
  136.             ])
  137.  
  138.     if env['xorg'] and env['drm']:
  139.         SConscript([
  140.             #'targets/xorg-i915/SConscript',
  141.         ])
  142.  
  143.  
  144. #
  145. # Unit tests & tools
  146. #
  147.  
  148. if not env['embedded']:
  149.     SConscript('tests/unit/SConscript')
  150.     SConscript('tests/graw/SConscript')
  151.