scons: Generate float64_glsl.h for glsl_to_nir fp64 lowering
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 26 Feb 2019 07:26:16 +0000 (23:26 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 2 Mar 2019 22:33:44 +0000 (14:33 -0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/SConscript.glsl

index a25374fce3db1facddfbae4798001a6ca2c57f02..45ddde8efc924b68c7ec614ed853934b0b94ae5d 100644 (file)
@@ -88,6 +88,13 @@ mesa_objs = env.StaticObject([
 compiler_objs += mesa_objs
 
 # GLSL generated sources
+env.CodeGenerate(
+    target = 'glsl/float64_glsl.h',
+    script = 'glsl/xxd.py',
+    source = ['glsl/float64.glsl'],
+    command = python_cmd + ' $SCRIPT $SOURCE $TARGET -n float64_source',
+)
+
 env.CodeGenerate(
     target = 'glsl/ir_expression_operation.h',
     script = 'glsl/ir_expression_operation.py',