[Mesa-dev] [PATCH] build: Drop BUILTIN_COMPILER_* variables

Kenneth Graunke kenneth at whitecape.org
Fri Nov 2 10:39:22 PDT 2012


From: Thierry Reding <thierry.reding at avionic-design.de>

The BUILTIN_COMPILER_CXX_FILES variable is unused and can be dropped.
Files listed in BUILTIN_COMPILER_GENERATED_CXX_FILES are no longer
generated for the builtin compiler but for the GLSL compiler. The
variable is renamed to GLSL_COMPILER_GENERATED_CXX_FILES for
consistency.

Signed-off-by: Thierry Reding <thierry.reding at avionic-design.de>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Cc: Matt Turner <mattst88 at gmail.com>
---
 src/glsl/Makefile.sources       | 13 ++-----------
 src/mesa/libdricore/Makefile.am |  2 +-
 2 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/src/glsl/Makefile.sources b/src/glsl/Makefile.sources
index aafb53e..55d2dad 100644
--- a/src/glsl/Makefile.sources
+++ b/src/glsl/Makefile.sources
@@ -93,20 +93,11 @@ GLSL_COMPILER_CXX_FILES = \
 	$(GLSL_SRCDIR)/standalone_scaffolding.cpp \
 	$(GLSL_SRCDIR)/main.cpp
 
-# builtin_compiler
-#
-# This is built before libglsl to generate builtin_funciton.cpp for libglsl.
-# For this to work, a dummy version of builtin_function.cpp,
-# builtin_stubs.cpp, is used.
-
-BUILTIN_COMPILER_CXX_FILES = \
-	$(GLSL_SRCDIR)/builtin_stubs.cpp
-
-BUILTIN_COMPILER_GENERATED_CXX_FILES = \
+GLSL_COMPILER_GENERATED_CXX_FILES = \
 	$(GLSL_BUILDDIR)/glsl_lexer.cc \
 	$(GLSL_BUILDDIR)/glsl_parser.cc
 
 # libglsl generated sources
 LIBGLSL_GENERATED_CXX_FILES = \
-	$(BUILTIN_COMPILER_GENERATED_CXX_FILES) \
+	$(GLSL_COMPILER_GENERATED_CXX_FILES) \
 	$(GLSL_BUILDDIR)/builtin_function.cpp
diff --git a/src/mesa/libdricore/Makefile.am b/src/mesa/libdricore/Makefile.am
index efd836e..490f7f3 100644
--- a/src/mesa/libdricore/Makefile.am
+++ b/src/mesa/libdricore/Makefile.am
@@ -40,7 +40,7 @@ libdricore at VERSION@_la_SOURCES = \
 	$(LIBGLCPP_FILES) \
 	$(LIBGLSL_FILES) \
 	$(LIBGLSL_CXX_FILES) \
-	$(BUILTIN_COMPILER_GENERATED_CXX_FILES) \
+	$(GLSL_COMPILER_GENERATED_CXX_FILES) \
 	$(top_builddir)/src/glsl/builtin_function.cpp
 libdricore at VERSION@_la_LDFLAGS = -version-number 1:0
 libdricore at VERSION@_la_LIBADD = libdricore-asm.la
-- 
1.8.0



More information about the mesa-dev mailing list