gallium: Add SCons build support for the DRI state tracker.
authorMichel Dänzer <daenzer@vmware.com>
Thu, 30 Apr 2009 07:39:29 +0000 (09:39 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Thu, 30 Apr 2009 07:39:29 +0000 (09:39 +0200)
src/gallium/SConscript
src/gallium/state_trackers/dri/SConscript [new file with mode: 0644]

index 0c632ac2b8b61e7fdf4e80ad777044f72c3cc6c5..b6ceaf3edf9105719e9658b96f999588d8200e96 100644 (file)
@@ -29,6 +29,7 @@ for driver in env['drivers']:
 
 SConscript('state_trackers/python/SConscript')
 SConscript('state_trackers/glx/xlib/SConscript')
+SConscript('state_trackers/dri/SConscript')
 
 if platform == 'windows':
        SConscript('state_trackers/wgl/SConscript')
diff --git a/src/gallium/state_trackers/dri/SConscript b/src/gallium/state_trackers/dri/SConscript
new file mode 100644 (file)
index 0000000..ce2c273
--- /dev/null
@@ -0,0 +1,23 @@
+#######################################################################
+# SConscript for dri state_tracker
+
+Import('*')
+
+if env['dri']:
+
+    env = env.Clone()
+
+    env.Append(CPPPATH = [
+        '#/src/mesa',
+       '#/src/mesa/drivers/dri/common',
+    ])
+
+    st_dri = env.ConvenienceLibrary(
+       target = 'st_dri',
+       source = [ 'dri_context.c',
+               'dri_drawable.c',
+               'dri_extensions.c',
+               'dri_screen.c',
+               ]
+    )
+    Export('st_dri')