scons: Unify state tracker SConscripts
authorJakob Bornecrantz <jakob@vmware.com>
Fri, 5 Nov 2010 18:30:06 +0000 (18:30 +0000)
committerJakob Bornecrantz <jakob@vmware.com>
Fri, 5 Nov 2010 20:58:49 +0000 (20:58 +0000)
src/gallium/state_trackers/dri/drm/SConscript
src/gallium/state_trackers/dri/sw/SConscript
src/gallium/state_trackers/glx/xlib/SConscript
src/gallium/state_trackers/xorg/SConscript

index 90082ffb6ae9cc7a86ac8986e3061606432f1784..b188f76f910a85df0ab85a2fea003a1500e27c98 100644 (file)
@@ -14,13 +14,15 @@ env.Append(CPPPATH = [
     '#/src/mesa/drivers/dri/common',
 ])
 
+sources = [
+    'dri_context.c',
+    'dri_drawable.c',
+    'dri_screen.c',
+    'dri2.c',
+]
+
 st_dri = env.ConvenienceLibrary(
     target = 'st_dri',
-    source = [ 'dri_context.c',
-               'dri_drawable.c',
-               'dri_screen.c',
-               'dri2.c',
-        ]
-    )
-
+    source = sources,
+)
 Export('st_dri')
index 8646d276c8d93d72ff6198bb773ff5d78f899048..d0c3efc6faa39d613578abf146c24e07443dcc9c 100644 (file)
@@ -14,13 +14,15 @@ env.Append(CPPPATH = [
 
 env.Append(CPPDEFINES = [('__NOT_HAVE_DRM_H', '1')])
 
+sources = [
+    'dri_context.c',
+    'dri_drawable.c',
+    'dri_screen.c',
+    'drisw.c',
+]
+
 st_drisw = env.ConvenienceLibrary(
     target = 'st_drisw',
-    source = [ 'dri_context.c',
-               'dri_drawable.c',
-               'dri_screen.c',
-               'drisw.c',
-        ]
-    )
-
+    source = sources,
+)
 Export('st_drisw')
index 0542a5fc89bbc479ff64eb62675bf334f68ed046..9e7ebf3fc912dcbe156055abbd94e064b7d1773e 100644 (file)
@@ -11,14 +11,16 @@ env.Append(CPPPATH = [
     '#/src/mesa/main',
 ])
 
-st_xlib = env.ConvenienceLibrary(
-target = 'st_xlib',
-source = [
+sources = [
     'glx_api.c',
     'glx_getproc.c',
     'glx_usefont.c',
     'xm_api.c',
     'xm_st.c',
-    ]
+]
+
+st_xlib = env.ConvenienceLibrary(
+    target = 'st_xlib',
+    source = sources,
 )
 Export('st_xlib')
index 1022954ca09a9ab2bf5d2622c95681483aa04a2a..19315694b7cd34bcba77a9fe148be3c3efce7033 100644 (file)
@@ -21,9 +21,8 @@ if conf.CheckHeader('X11/extensions/dpmsconst.h'):
 
 conf.Finish()
 
-st_xorg = env.ConvenienceLibrary(
-target = 'st_xorg',
-source = [ 'xorg_composite.c',
+sources = [
+    'xorg_composite.c',
     'xorg_crtc.c',
     'xorg_dri2.c',
     'xorg_driver.c',
@@ -32,6 +31,10 @@ source = [ 'xorg_composite.c',
     'xorg_output.c',
     'xorg_renderer.c',
     'xorg_xv.c',
-    ]
+]
+
+st_xorg = env.ConvenienceLibrary(
+    target = 'st_xorg',
+    source = sources,
 )
 Export('st_xorg')