scons: add code to generate format_fallback.c file

Fixes: a1983223d8 "mesa: Add _mesa_format_fallback_rgbx_to_rgba() [v2]"

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Brian Paul
2017-06-27 20:56:22 -06:00
parent e529ade0ea
commit 7bbcf3ac70

View File

@@ -79,6 +79,13 @@ format_unpack = env.CodeGenerate(
command = python_cmd + ' $SCRIPT ' + ' $SOURCE > $TARGET'
)
format_fallback = env.CodeGenerate(
target = 'main/format_fallback.c',
script = 'main/format_fallback.py',
source = 'main/formats.csv',
command = python_cmd + ' $SCRIPT ' + ' $SOURCE ' + ' $TARGET'
)
#
# Assembly sources
#