Mesa (master): scons: add code to generate format_fallback.c file

Brian Paul brianp at kemper.freedesktop.org
Wed Jun 28 10:12:26 UTC 2017


Module: Mesa
Branch: master
Commit: 7bbcf3ac70933393dc9567e36a94fb4abc1748e7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7bbcf3ac70933393dc9567e36a94fb4abc1748e7

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jun 27 20:56:22 2017 -0600

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 at vmware.com>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

---

 src/mesa/SConscript | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index fa4efe101b..b63e15a3f0 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
 #




More information about the mesa-commit mailing list