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
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
SConscript([
|
|
|
|
|
'drivers/failover/SConscript',
|
|
|
|
|
'drivers/galahad/SConscript',
|
|
|
|
|
'drivers/identity/SConscript',
|
|
|
|
|
'drivers/llvmpipe/SConscript',
|
|
|
|
|
'drivers/rbug/SConscript',
|
|
|
|
|
'drivers/softpipe/SConscript',
|
|
|
|
|
'drivers/svga/SConscript',
|
|
|
|
|
'drivers/trace/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
2010-11-01 14:24:08 +00:00
|
|
|
if not env['msvc']:
|
|
|
|
|
# These drivers do not build on MSVC compilers
|
|
|
|
|
SConscript([
|
2010-11-02 13:49:35 +00:00
|
|
|
'drivers/i915/SConscript',
|
2010-11-01 14:24:08 +00:00
|
|
|
'drivers/i965/SConscript',
|
|
|
|
|
'drivers/r300/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
2010-11-05 16:55:46 +00:00
|
|
|
if env['drm']:
|
2010-11-01 13:30:22 +00:00
|
|
|
# These drivers depend on drm headers
|
2010-11-05 16:55:46 +00:00
|
|
|
if env['drm_radeon']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'drivers/r600/SConscript',
|
|
|
|
|
])
|
|
|
|
|
# XXX: nouveau drivers have a tight dependency on libdrm, so to enable
|
|
|
|
|
# we need some version logic before we enable them. Also, ATM there is
|
|
|
|
|
# no nouveau target in scons
|
|
|
|
|
# if env['drm_nouveau']:
|
|
|
|
|
# SConscript([
|
|
|
|
|
# 'drivers/nouveau/SConscript',
|
|
|
|
|
# 'drivers/nv50/SConscript',
|
|
|
|
|
# 'drivers/nvfx/SConscript',
|
|
|
|
|
# ])
|
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
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
if env['platform'] != 'embedded':
|
2010-11-04 21:12:30 +00:00
|
|
|
SConscript('state_trackers/vega/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')
|
|
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
if env['platform'] == 'windows':
|
2010-11-05 18:18:09 +00:00
|
|
|
SConscript([
|
|
|
|
|
'state_trackers/egl/SConscript',
|
|
|
|
|
'state_trackers/wgl/SConscript',
|
|
|
|
|
])
|
2010-03-09 15:07:57 +00:00
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
#
|
|
|
|
|
# Winsys
|
|
|
|
|
#
|
|
|
|
|
|
2010-03-09 15:07:57 +00:00
|
|
|
SConscript('winsys/SConscript')
|
|
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
#
|
|
|
|
|
# Targets
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/graw-null/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
if env['x11']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/graw-xlib/SConscript',
|
|
|
|
|
'targets/libgl-xlib/SConscript',
|
|
|
|
|
])
|
2010-04-13 07:05:13 +09:00
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
if env['platform'] == 'windows':
|
|
|
|
|
SConscript([
|
2010-11-04 14:33:31 +01:00
|
|
|
'targets/graw-gdi/SConscript',
|
2010-11-01 13:30:22 +00:00
|
|
|
'targets/libgl-gdi/SConscript',
|
|
|
|
|
#'egl-gdi/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
if env['dri']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/SConscript.dri',
|
2010-11-04 21:12:30 +00:00
|
|
|
'targets/dri-swrast/SConscript',
|
|
|
|
|
'targets/dri-vmwgfx/SConscript',
|
2010-11-05 16:55:46 +00:00
|
|
|
#'targets/dri-nouveau/SConscript',
|
2010-11-01 13:30:22 +00:00
|
|
|
])
|
2010-11-05 16:55:46 +00:00
|
|
|
if env['drm_intel']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/dri-i915/SConscript',
|
|
|
|
|
'targets/dri-i965/SConscript',
|
|
|
|
|
])
|
|
|
|
|
if env['drm_radeon']:
|
|
|
|
|
SConscript([
|
|
|
|
|
'targets/dri-r300/SConscript',
|
|
|
|
|
'targets/dri-r600/SConscript',
|
|
|
|
|
])
|
2010-11-01 13:30:22 +00:00
|
|
|
|
2010-11-09 00:28:05 -05:00
|
|
|
if env['xorg'] and env['drm']:
|
2010-11-01 13:30:22 +00:00
|
|
|
SConscript([
|
|
|
|
|
#'targets/xorg-i915/SConscript',
|
|
|
|
|
#'targets/xorg-i965/SConscript',
|
|
|
|
|
#'targets/xorg-nouveau/SConscript',
|
|
|
|
|
#'targets/xorg-radeon/SConscript',
|
|
|
|
|
'targets/xorg-vmwgfx/SConscript',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Unit tests & tools
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
if env['platform'] != 'embedded':
|
2010-11-04 21:12:30 +00:00
|
|
|
SConscript('tests/unit/SConscript')
|
|
|
|
|
SConscript('tests/graw/SConscript')
|