diff options
author | Jason Ekstrand <[email protected]> | 2014-06-20 15:52:10 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2014-08-05 10:56:15 -0700 |
commit | 12610ffcf79b20996f16fec4cbed1c1e2ef67f5e (patch) | |
tree | 47cb4bdf5f923588fd1cdcff007b0bfa5ae0581f /src/mesa/SConscript | |
parent | 342056531053bf929cb9f0e24e2121ffa52c80b2 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r-- | src/mesa/SConscript | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript index a674a1bdc48..e7c4f5ca1f8 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 # |