scons: Add glsl/glcpp to the include path.
authorVinson Lee <vlee@freedesktop.org>
Tue, 19 Jun 2012 07:02:53 +0000 (00:02 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 23 Jun 2012 20:40:09 +0000 (13:40 -0700)
Fixes this build failure on Solaris.

  Compiling build/sunos-debug/glsl/glcpp/glcpp-lex.c ...
"src/glsl/glcpp/glcpp-lex.l", line 30: cannot find include file: "glcpp-parse.h"

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glsl/SConscript

index f8e8723..2fc57c6 100644 (file)
@@ -14,8 +14,8 @@ env.Prepend(CPPPATH = [
     '#src/glsl/glcpp',
 ])
 
-# Make glcpp/glcpp-parse.h and glsl_parser.h reacheable from the include path
-env.Append(CPPPATH = [Dir('.').abspath])
+# Make glcpp-parse.h and glsl_parser.h reachable from the include path.
+env.Append(CPPPATH = [Dir('.').abspath, Dir('glcpp').abspath])
 
 env.Append(YACCFLAGS = '-d')