glsl: Use the generated constant expression code
[mesa.git] / src / compiler / SConscript.glsl
index 31d8f6debf45b9289fdc7f50ee28bb62d674464d..d9878a00945c3871704de48646f66093f4fb5531 100644 (file)
@@ -116,6 +116,27 @@ env.Prepend(LIBS = [compiler, glsl])
 
 compiler_objs += env.StaticObject("glsl/main.cpp")
 
+# GLSL generated sources
+
+env.CodeGenerate(
+    target = 'glsl/ir_expression_operation.h',
+    script = 'glsl/ir_expression_operation.py',
+    source = [],
+    command = python_cmd + ' $SCRIPT enum > $TARGET'
+)
+env.CodeGenerate(
+    target = 'glsl/ir_expression_operation_constant.h',
+    script = 'glsl/ir_expression_operation.py',
+    source = [],
+    command = python_cmd + ' $SCRIPT constant > $TARGET'
+)
+env.CodeGenerate(
+    target = 'glsl/ir_expression_operation_strings.h',
+    script = 'glsl/ir_expression_operation.py',
+    source = [],
+    command = python_cmd + ' $SCRIPT strings > $TARGET'
+)
+
 glsl_compiler = env.Program(
     target = 'glsl_compiler',
     source = compiler_objs,