diff options
author | Kenneth Graunke <[email protected]> | 2014-02-24 23:39:14 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2014-08-04 11:06:58 -0700 |
commit | 1e0da6233be6e5fb0143615d5e3d3642ddb7964f (patch) | |
tree | b33478332a051d4d587009cc8a76b71c5210bdc6 /src/util/SConscript | |
parent | dcc29c18b4affd0a69202a822ffe77d94594f98b (diff) |
util: Move ralloc to a new src/util directory.
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 <[email protected]>
v2 (Jason Ekstrand): More realloc uses and some scons fixes
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/util/SConscript')
-rw-r--r-- | src/util/SConscript | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/util/SConscript b/src/util/SConscript new file mode 100644 index 00000000000..9653ef62ea1 --- /dev/null +++ b/src/util/SConscript @@ -0,0 +1,26 @@ +import common + +Import('*') + +from sys import executable as python_cmd + +env = env.Clone() + +env.Prepend(CPPPATH = [ + '#include', + '#src/mesa', + '#src/util', +]) + +# parse Makefile.sources +source_lists = env.ParseSourceList('Makefile.sources') + +mesautil_sources = source_lists['MESA_UTIL_FILES'] + +mesautil = env.ConvenienceLibrary( + target = 'mesautil', + source = mesautil_sources, +) + +env.Alias('mesautil', mesautil) +Export('mesautil') |