summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2017-06-27 20:56:22 -0600
committerBrian Paul <brianp@vmware.com>2017-06-28 04:12:25 -0600
commit7bbcf3ac70933393dc9567e36a94fb4abc1748e7 (patch)
treee6065db123b8eb9ab9d0f0de9a75cb74fbb3cd6d /src/mesa
parente529ade0ea5dd47d2943eedc012f30eb5671b55d (diff)
scons: add code to generate format_fallback.c file
Fixes: a1983223d8839a0c9 "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>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/SConscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index fa4efe101b9..b63e15a3f05 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -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
#