From: Brian Paul Date: Wed, 28 Jun 2017 02:56:22 +0000 (-0600) Subject: scons: add code to generate format_fallback.c file X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bbcf3ac70933393dc9567e36a94fb4abc1748e7;p=mesa.git scons: add code to generate format_fallback.c file Fixes: a1983223d8839a0c9 "mesa: Add _mesa_format_fallback_rgbx_to_rgba() [v2]" Reviewed-by: Roland Scheidegger Reviewed-by: Eric Engestrom Reviewed-by: Emil Velikov --- 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 #