From 1e0da6233be6e5fb0143615d5e3d3642ddb7964f Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 24 Feb 2014 23:39:14 -0800 Subject: util: Move ralloc to a new src/util directory. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For a long time, we've wanted a place to put utility code which isn't directly tied to Mesa or Gallium internals. This patch creates a new src/util directory for exactly that purpose, and builds the contents as libmesautil.la. ralloc seemed like a good first candidate. These days, it's directly used by mesa/main, i965, i915, and r300g, so keeping it in src/glsl didn't make much sense. Signed-off-by: Kenneth Graunke v2 (Jason Ekstrand): More realloc uses and some scons fixes Signed-off-by: Jason Ekstrand Reviewed-by: Marek Olšák --- src/glsl/SConscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glsl/SConscript') diff --git a/src/glsl/SConscript b/src/glsl/SConscript index dc354775a55..d1d5993d60a 100644 --- a/src/glsl/SConscript +++ b/src/glsl/SConscript @@ -8,12 +8,15 @@ env = env.Clone() env.Prepend(CPPPATH = [ '#include', + '#src', '#src/mapi', '#src/mesa', '#src/glsl', '#src/glsl/glcpp', ]) +env.Prepend(LIBS = [mesautil]) + # Make glcpp-parse.h and glsl_parser.h reachable from the include path. env.Append(CPPPATH = [Dir('.').abspath, Dir('glcpp').abspath]) -- cgit v1.2.3