[Mesa-dev] [PATCH] Fix build to use glsl_parser.hh instead of glsl_parser.h.
Marcin Baczyński
marbacz at gmail.com
Fri Jul 13 14:23:40 PDT 2012
Commit 68e04cc6014bf7a2c9bd0b3b783b4ec12aa2e824 changed .cpp -> .cc,
but forgot to update references .h -> .hh.
Also update Doxygen and .gitignore.
Signed-off-by: Marcin Baczyński <marbacz at gmail.com>
---
Fixes a build failure for me when after configuring with
$ ./autogen.sh --prefix=/usr \
--with-dri-drivers=\
--with-gallium-drivers=r600,swrast\
--enable-texture-float\
--enable-glx-tls\
--enable-vdpau
make stops with
(...)
Making all in glsl
gmake[2]: Entering directory `/data/mesa/src/glsl'
gmake[2]: *** No rule to make target `glsl_parser.h', needed by `all'. Stop.
gmake[2]: *** Waiting for unfinished jobs....
Makefile.am | 4 ++--
doxygen/glsl.doxy | 8 ++++----
src/glsl/.gitignore | 1 +
src/glsl/Makefile.am | 2 +-
src/glsl/glsl_lexer.ll | 2 +-
src/glsl/glsl_parser_extras.cpp | 2 +-
6 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index b2c810a..4d91ebb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -59,7 +59,7 @@ EXTRA_FILES = \
aclocal.m4 \
configure \
src/glsl/glsl_parser.cc \
- src/glsl/glsl_parser.h \
+ src/glsl/glsl_parser.hh \
src/glsl/glsl_lexer.cc \
src/glsl/glcpp/glcpp-lex.c \
src/glsl/glcpp/glcpp-parse.c \
@@ -80,7 +80,7 @@ IGNORE_FILES = \
parsers: configure
- at touch $(top_builddir)/configs/current
- $(MAKE) -C src/glsl glsl_parser.cc glsl_parser.h glsl_lexer.cc
+ $(MAKE) -C src/glsl glsl_parser.cc glsl_parser.hh glsl_lexer.cc
$(MAKE) -C src/glsl/glcpp glcpp-lex.c glcpp-parse.c glcpp-parse.h
$(MAKE) -C src/mesa program/lex.yy.c program/program_parse.tab.c program/program_parse.tab.h
diff --git a/doxygen/glsl.doxy b/doxygen/glsl.doxy
index 5411ec4..d110202 100644
--- a/doxygen/glsl.doxy
+++ b/doxygen/glsl.doxy
@@ -11,10 +11,10 @@ PROJECT_NAME = "Mesa GLSL module"
#---------------------------------------------------------------------------
INPUT = ../src/glsl/
RECURSIVE = NO
-EXCLUDE = ../src/glsl/glsl_lexer.cpp \
- ../src/glsl/glsl_lexer.h \
- ../src/glsl/glsl_parser.cpp \
- ../src/glsl/glsl_parser.h
+EXCLUDE = ../src/glsl/glsl_lexer.cc \
+ ../src/glsl/glsl_lexer.hh \
+ ../src/glsl/glsl_parser.cc \
+ ../src/glsl/glsl_parser.hh
EXCLUDE_PATTERNS =
#---------------------------------------------------------------------------
# configuration options related to the HTML output
diff --git a/src/glsl/.gitignore b/src/glsl/.gitignore
index c9a9f30..f79c2a9 100644
--- a/src/glsl/.gitignore
+++ b/src/glsl/.gitignore
@@ -4,6 +4,7 @@ glsl_lexer.cpp
glsl_parser.cc
glsl_parser.cpp
glsl_parser.h
+glsl_parser.hh
glsl_parser.output
builtin_function.cpp
builtin_compiler
diff --git a/src/glsl/Makefile.am b/src/glsl/Makefile.am
index 2b9ca2c..8db2802 100644
--- a/src/glsl/Makefile.am
+++ b/src/glsl/Makefile.am
@@ -87,7 +87,7 @@ builtin_compiler_SOURCES = \
builtin_compiler_LDADD = libglslcommon.la
-BUILT_SOURCES = glsl_lexer.cc glsl_parser.cc glsl_parser.h builtin_function.cpp
+BUILT_SOURCES = glsl_lexer.cc glsl_parser.cc glsl_parser.hh builtin_function.cpp
CLEANFILES = $(BUILT_SOURCES)
builtin_function.cpp: builtins/profiles/* builtins/ir/* builtins/glsl/* builtins/tools/generate_builtins.py builtins/tools/texture_builtins.py builtin_compiler$(EXEEXT)
diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll
index 24cda0c..64ce415 100644
--- a/src/glsl/glsl_lexer.ll
+++ b/src/glsl/glsl_lexer.ll
@@ -26,7 +26,7 @@
#include "strtod.h"
#include "ast.h"
#include "glsl_parser_extras.h"
-#include "glsl_parser.h"
+#include "glsl_parser.hh"
static int classify_identifier(struct _mesa_glsl_parse_state *, const char *);
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index d9ee406..9456825 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -32,7 +32,7 @@ extern "C" {
#include "ralloc.h"
#include "ast.h"
#include "glsl_parser_extras.h"
-#include "glsl_parser.h"
+#include "glsl_parser.hh"
#include "ir_optimization.h"
#include "loop_analysis.h"
--
1.7.8.6
More information about the mesa-dev
mailing list