summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-07-20 23:40:14 +0100
committerEmil Velikov <[email protected]>2014-08-13 00:46:54 +0100
commitb72b826ef8e8a4384a7148049a86f2fea116ca4f (patch)
treea05228b586d8123bf7d0b9319f6c51464ed63ce2 /src/gallium
parentec668cbf8be1dd79ca0b7a9b68618dcefc729312 (diff)
scons: group state-trackers' and targets' scons
Both share the identical dependencies, as such we can simplify the scons script. Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/SConscript42
1 files changed, 11 insertions, 31 deletions
diff --git a/src/gallium/SConscript b/src/gallium/SConscript
index cb617200752..98d017e4db0 100644
--- a/src/gallium/SConscript
+++ b/src/gallium/SConscript
@@ -22,34 +22,14 @@ SConscript([
])
#
-# State trackers
-#
-
-# Needed by some state trackers
-SConscript('winsys/sw/null/SConscript')
-
-if not env['embedded']:
- SConscript('state_trackers/vega/SConscript')
- if env['platform'] not in ('cygwin', 'darwin', 'haiku', 'sunos'):
- SConscript('state_trackers/egl/SConscript')
-
- if env['x11']:
- SConscript('state_trackers/glx/xlib/SConscript')
-
- if env['dri']:
- SConscript('state_trackers/dri/SConscript')
-
- if env['platform'] == 'windows':
- SConscript('state_trackers/wgl/SConscript')
-
-#
# Winsys
-#
+#
SConscript([
+ 'winsys/sw/null/SConscript',
'winsys/sw/wrapper/SConscript',
])
-
+
if env['x11']:
SConscript([
'winsys/sw/xlib/SConscript',
@@ -68,18 +48,13 @@ if env['platform'] == 'haiku':
if env['dri']:
SConscript([
'winsys/sw/dri/SConscript',
- ])
-
- SConscript([
'winsys/sw/kms-dri/SConscript',
- ])
-
- SConscript([
'winsys/svga/drm/SConscript',
])
+
#
-# Targets
+# State trackers and targets
#
SConscript([
@@ -87,19 +62,23 @@ SConscript([
])
if not env['embedded']:
+ SConscript('state_trackers/vega/SConscript')
if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'sunos'):
SConscript([
- 'targets/egl-static/SConscript'
+ 'state_trackers/egl/SConscript',
+ 'targets/egl-static/SConscript',
])
if env['x11']:
SConscript([
+ 'state_trackers/glx/xlib/SConscript',
'targets/graw-xlib/SConscript',
'targets/libgl-xlib/SConscript',
])
if env['platform'] == 'windows':
SConscript([
+ 'state_trackers/wgl/SConscript',
'targets/graw-gdi/SConscript',
'targets/libgl-gdi/SConscript',
])
@@ -111,6 +90,7 @@ if not env['embedded']:
if env['dri']:
SConscript([
+ 'state_trackers/dri/SConscript',
'targets/dri/SConscript',
])