diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2014-08-22 09:49:09 -0700 |
---|---|---|
committer | Iago Toral Quiroga <itoral@igalia.com> | 2015-01-12 11:20:28 +0100 |
commit | e1fdcddafe95ca8a62fc86c8219de459fcbd219e (patch) | |
tree | e8aab8e1c024c7b65bd5cdaa6d6a09122a79051f /src/mesa/SConscript | |
parent | e0439f750557bc6880a8a4eccb38256fafd63fae (diff) | |
download | external_mesa3d-e1fdcddafe95ca8a62fc86c8219de459fcbd219e.zip external_mesa3d-e1fdcddafe95ca8a62fc86c8219de459fcbd219e.tar.gz external_mesa3d-e1fdcddafe95ca8a62fc86c8219de459fcbd219e.tar.bz2 |
mesa: Autogenerate format_unpack.c
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
v2 by Samuel Iglesias <siglesias@igalia.com>:
- Add usage of INDENT_FLAGS in Makefile.am
v3 by Samuel Iglesias <siglesias@igalia.com>:
- Modify unpack_float_*() and unpack_ubyte_*() function generation
to use c.datatype() and f.datatype()
- Fix out-of-tree build
v4 by Samuel Iglesias <siglesias@igalia.com>:
- format_unpack.c.mako is now format_unpack.py, with the template code
inlined. It now auto-generates format_unpack.c
- Add format_unpack.c to gitignore.
- Simplify Makefile.am change
- Modify SConscript to build format_unpack.c with scons
v5 by Samuel Iglesias <siglesias@igalia.com>:
- Don't allow float to non-normalized integer format conversions.
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
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 d9a3478..1ad5f26 100644 --- a/src/mesa/SConscript +++ b/src/mesa/SConscript @@ -73,6 +73,13 @@ format_pack = env.CodeGenerate( command = python_cmd + ' $SCRIPT ' + ' $SOURCE > $TARGET' ) +format_unpack = env.CodeGenerate( + target = 'main/format_unpack.c', + script = 'main/format_unpack.py', + source = 'main/formats.csv', + command = python_cmd + ' $SCRIPT ' + ' $SOURCE > $TARGET' +) + # # Assembly sources # |