2010-11-01 13:30:22 +00:00
|
|
|
Import('env')
|
2008-02-23 10:49:08 +00:00
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
#
|
|
|
|
# Auxiliary modules
|
|
|
|
#
|
2008-01-31 04:14:35 +00:00
|
|
|
|
2009-12-31 22:18:17 +00:00
|
|
|
SConscript('auxiliary/SConscript')
|
2008-02-19 01:50:39 +00: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-01 13:30:22 +00:00
|
|
|
if env['dri']:
|
|
|
|
# These drivers depend on drm headers
|
|
|
|
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
|
|
|
|
#'drivers/nouveau/SConscript',
|
|
|
|
#'drivers/nv50/SConscript',
|
|
|
|
#'drivers/nvfx/SConscript',
|
|
|
|
'drivers/r600/SConscript',
|
|
|
|
])
|
|
|
|
|
|
|
|
#
|
|
|
|
# State trackers
|
|
|
|
#
|
2008-07-13 15:36:59 +01: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
|
|
|
|
2008-07-13 15:36:59 +01:00
|
|
|
SConscript('state_trackers/python/SConscript')
|
2010-11-01 13:30:22 +00:00
|
|
|
if env['platform'] != 'embedded':
|
2010-01-26 20:58:11 +00:00
|
|
|
SConscript('state_trackers/glx/xlib/SConscript')
|
|
|
|
SConscript('state_trackers/dri/SConscript')
|
|
|
|
SConscript('state_trackers/xorg/SConscript')
|
2010-05-31 05:03:39 +01:00
|
|
|
SConscript('state_trackers/egl/SConscript')
|
2010-05-31 05:38:21 +01:00
|
|
|
SConscript('state_trackers/vega/SConscript')
|
2009-01-27 11:28:29 +00:00
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
if env['platform'] == 'windows':
|
2009-01-27 11:28:29 +00:00
|
|
|
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-12 23:05:13 +01:00
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
if env['platform'] == 'windows':
|
|
|
|
SConscript([
|
2010-11-04 13:33:31 +00: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',
|
|
|
|
'targets/dri-i915/SConscript',
|
|
|
|
'targets/dri-i965/SConscript',
|
|
|
|
#'targets/dri-nouveau/SConscript',
|
|
|
|
'targets/dri-r300/SConscript',
|
|
|
|
'targets/dri-r600/SConscript',
|
|
|
|
'targets/dri-swrast/SConscript',
|
|
|
|
'targets/dri-vmwgfx/SConscript',
|
|
|
|
])
|
|
|
|
|
|
|
|
if env['xorg']:
|
|
|
|
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-04-13 12:54:36 +01:00
|
|
|
SConscript('tests/unit/SConscript')
|
2010-06-07 16:43:49 +01:00
|
|
|
SConscript('tests/graw/SConscript')
|
2010-11-01 13:30:22 +00:00
|
|
|
|