scons: add code to generate format_fallback.c file
authorBrian Paul <brianp@vmware.com>
Wed, 28 Jun 2017 02:56:22 +0000 (20:56 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Jun 2017 10:12:25 +0000 (04:12 -0600)
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>
src/mesa/SConscript

index fa4efe101b9b2372a7ef12c8137fea71c4959bef..b63e15a3f054102821ab7937bbd75b6d83ceeda1 100644 (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
 #