summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/indices/SConscript
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-02-05 14:44:17 +0000
committerKeith Whitwell <[email protected]>2009-02-05 16:04:38 +0000
commit3120894c6d33a26cda642246344e8945db200ac2 (patch)
tree2dd29ed9dcf667c5940c06b8a20fc5240b0f2986 /src/gallium/auxiliary/indices/SConscript
parent099e9d20f0e8f5ee108e4fbb4bf7cae97b5f9a4a (diff)
gallium: add new aux lib for index list translations
Could this be the ultimate index list translating utility? Maybe, but it doesn't yet include support for splitting primitives. Unlike previous attempts, this captures all possible combinations of API and hardware provoking vertex, supports generated list reuse and various other tricks. Relies on python-generated code.
Diffstat (limited to 'src/gallium/auxiliary/indices/SConscript')
-rw-r--r--src/gallium/auxiliary/indices/SConscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/indices/SConscript b/src/gallium/auxiliary/indices/SConscript
new file mode 100644
index 00000000000..65a43a9f648
--- /dev/null
+++ b/src/gallium/auxiliary/indices/SConscript
@@ -0,0 +1,17 @@
+Import('*')
+
+env.CodeGenerate(
+ target = 'u_indices_gen.c',
+ script = 'u_indices_gen.py',
+ source = [],
+ command = 'python $SCRIPT > $TARGET'
+)
+
+indices = env.ConvenienceLibrary(
+ target = 'indices',
+ source = [
+# 'u_indices.c',
+ 'u_indices_gen.c',
+ ])
+
+auxiliaries.insert(0, indices)