summaryrefslogtreecommitdiffstats
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2014-06-20 15:52:10 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2014-08-05 10:56:15 -0700
commit12610ffcf79b20996f16fec4cbed1c1e2ef67f5e (patch)
tree47cb4bdf5f923588fd1cdcff007b0bfa5ae0581f /src/mesa/SConscript
parent342056531053bf929cb9f0e24e2121ffa52c80b2 (diff)
downloadexternal_mesa3d-12610ffcf79b20996f16fec4cbed1c1e2ef67f5e.zip
external_mesa3d-12610ffcf79b20996f16fec4cbed1c1e2ef67f5e.tar.gz
external_mesa3d-12610ffcf79b20996f16fec4cbed1c1e2ef67f5e.tar.bz2
mesa/formats: Autogenerate the format_info structure from a CSV file
Instead of a having all of the format metadata in a gigantic hard-to-edit array of type struct format_info, we now have a human-readable CSV file. The CSV file also contains more format information than the format_info struct contained so we can potentially make format_info more detailed later. The python to generate the format information was added the previous commit. This commit turns it on in both automake and scons builds. v2: Split into two commits and stuff to generate format_info.c from scons Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r--src/mesa/SConscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index a674a1b..e7c4f5c 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -59,6 +59,13 @@ get_hash_header = env.CodeGenerate(
command = python_cmd + ' $SCRIPT ' + ' -f $SOURCE > $TARGET'
)
+format_info = env.CodeGenerate(
+ target = 'main/format_info.c',
+ script = 'main/format_info.py',
+ source = 'main/formats.csv',
+ command = python_cmd + ' $SCRIPT ' + ' $SOURCE > $TARGET'
+)
+
#
# Assembly sources
#