2010-11-01 13:30:22 +00:00
|
|
|
Import('env')
|
2008-02-23 19:49:08 +09:00
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
#
|
|
|
|
|
# Auxiliary modules
|
|
|
|
|
#
|
2008-01-31 13:14:35 +09:00
|
|
|
|
2009-12-31 22:18:17 +00:00
|
|
|
SConscript('auxiliary/SConscript')
|
2008-02-19 10:50:39 +09:00
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
#
|
|
|
|
|
# Drivers
|
|
|
|
|
#
|
|
|
|
|
|
2012-01-16 12:42:05 +00:00
|
|
|
# These are common and work across all platforms
|
2010-11-01 13:30:22 +00:00
|
|
|
SConscript([
|
|
|
|
|
'drivers/galahad/SConscript',
|
2011-11-29 22:36:02 +01:00
|
|
|
'drivers/identity/SConscript',
|
2012-01-22 12:42:10 -06:00
|
|
|
'drivers/llvmpipe/SConscript',
|
2010-11-01 13:30:22 +00:00
|
|
|
'drivers/rbug/SConscript',
|
|
|
|
|
'drivers/softpipe/SConscript',
|
2012-01-22 12:42:10 -06:00
|
|
|
'drivers/svga/SConscript',
|
2011-11-29 22:36:02 +01:00
|
|
|
'drivers/trace/SConscript',
|
2010-11-01 13:30:22 +00:00
|
|
|
])
|
|
|
|
|
|
2010-11-01 14:24:08 +00:00
|
|
|
if not env['msvc']:
|
|
|
|
|
# These drivers do not build on MSVC compilers
|
|
|
|
|
SConscript([
|
2011-11-29 22:36:02 +01:00
|
|
|
'drivers/i915/SConscript',
|
2010-11-01 14:24:08 +00:00
|
|
|
])
|
|
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
#
|
|
|
|
|
# State trackers
|
|
|
|
|
#
|
2008-07-13 23:36:59 +09:00
|
|
|
|
2010-03-10 12:00:13 +00:00
|
|
|
# Needed by some state trackers
|
2010-03-16 13:54:18 +00:00
|
|
|
SConscript('winsys/sw/null/SConscript')
|
2010-03-10 12:00:13 +00:00
|
|
|
|
2011-06-17 14:48:28 +01:00
|
|
|
if not env['embedded']:
|
2010-11-04 21:12:30 +00:00
|
|
|
SConscript('state_trackers/vega/SConscript')
|
2012-05-21 22:16:15 -07:00
|
|
|
if env['platform'] not in ('cygwin', 'darwin', 'haiku', 'sunos'):
|
2011-09-20 20:40:05 +01:00
|
|
|
SConscript('state_trackers/egl/SConscript')
|
2009-01-27 11:28:29 +00:00
|
|
|
|
2010-11-05 18:18:09 +00:00
|
|
|
if env['x11']:
|
|
|
|
|
SConscript('state_trackers/glx/xlib/SConscript')
|
|
|
|
|
|
|
|
|
|
if env['dri']:
|
|
|
|
|
SConscript('state_trackers/dri/SConscript')
|
|
|
|
|
|
|
|
|
|
if env['dri'] and env['xorg']:
|
|
|
|
|
SConscript('state_trackers/xorg/SConscript')
|
|
|
|
|
|
2011-06-17 14:48:28 +01:00
|
|
|
if env['platform'] == 'windows':
|
|
|
|
|
SConscript('state_trackers/wgl/SConscript')
|
2010-03-09 15:07:57 +00:00
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
#
|
|
|
|
|
# Winsys
|
|
|
|
|
#
|
|
|
|
|
|
2012-02-07 11:16:35 +00:00
|
|
|
SConscript([
|
|
|
|
|
'winsys/sw/wrapper/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
if env['x11']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'winsys/sw/xlib/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
if env['platform'] == 'windows':
|
|
|
|
|
SConscript([
|
|
|
|
|
'winsys/sw/gdi/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
if not env['msvc']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'winsys/i915/sw/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
2013-05-21 15:55:24 -05:00
|
|
|
if env['platform'] == 'haiku':
|
|
|
|
|
SConscript([
|
|
|
|
|
'winsys/sw/hgl/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
2012-02-07 11:16:35 +00:00
|
|
|
if env['dri']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'winsys/sw/dri/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
SConscript([
|
|
|
|
|
'winsys/svga/drm/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
if env['drm_intel']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'winsys/i915/drm/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
#
|
|
|
|
|
# Targets
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/graw-null/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
2011-06-17 14:48:28 +01:00
|
|
|
if not env['embedded']:
|
2012-05-23 17:26:20 -07:00
|
|
|
if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'sunos'):
|
2011-09-20 20:40:05 +01:00
|
|
|
SConscript([
|
|
|
|
|
'targets/egl-static/SConscript'
|
|
|
|
|
])
|
2011-01-09 23:37:32 +08:00
|
|
|
|
2011-06-17 14:48:28 +01:00
|
|
|
if env['x11']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/graw-xlib/SConscript',
|
|
|
|
|
'targets/libgl-xlib/SConscript',
|
|
|
|
|
])
|
2010-04-13 07:05:13 +09:00
|
|
|
|
2011-06-17 14:48:28 +01:00
|
|
|
if env['platform'] == 'windows':
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/graw-gdi/SConscript',
|
|
|
|
|
'targets/libgl-gdi/SConscript',
|
|
|
|
|
])
|
2010-11-01 13:30:22 +00:00
|
|
|
|
2013-05-21 15:55:24 -05:00
|
|
|
if env['platform'] == 'haiku':
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/haiku-softpipe/SConscript',
|
2013-10-01 21:03:48 +00:00
|
|
|
'targets/libgl-haiku/SConscript',
|
2013-05-21 15:55:24 -05:00
|
|
|
])
|
|
|
|
|
|
2011-06-17 14:48:28 +01:00
|
|
|
if env['dri']:
|
2010-11-05 16:55:46 +00:00
|
|
|
SConscript([
|
2011-06-17 14:48:28 +01:00
|
|
|
'targets/SConscript.dri',
|
|
|
|
|
'targets/dri-swrast/SConscript',
|
|
|
|
|
'targets/dri-vmwgfx/SConscript',
|
2010-11-05 16:55:46 +00:00
|
|
|
])
|
2011-06-17 14:48:28 +01:00
|
|
|
if env['drm_intel']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/dri-i915/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Unit tests & tools
|
|
|
|
|
#
|
|
|
|
|
|
2011-06-17 14:48:28 +01:00
|
|
|
if not env['embedded']:
|
2010-11-04 21:12:30 +00:00
|
|
|
SConscript('tests/unit/SConscript')
|
|
|
|
|
SConscript('tests/graw/SConscript')
|