util: Auto-generate u_format_table.c from SConscript.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 10 Aug 2009 14:23:35 +0000 (15:23 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 29 Aug 2009 08:21:28 +0000 (09:21 +0100)
src/gallium/auxiliary/util/SConscript

index 88a2ae7ae949980002d376284fa31fc99cdef866..7a2180736d9302f90e35256d12688895c55f1524 100644 (file)
@@ -1,5 +1,12 @@
 Import('*')
 
+env.CodeGenerate(
+       target = 'u_format_table.c',
+       script = 'u_format_table.py',
+       source = ['u_format.csv'],
+       command = 'python $SCRIPT $SOURCE > $TARGET'
+)
+
 util = env.ConvenienceLibrary(
        target = 'util',
        source = [