diff options
author | José Fonseca <[email protected]> | 2010-08-26 11:37:42 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-08-26 11:37:42 +0100 |
commit | 90437330e2886fcd351dd11ee0e5aa3e8b523fdc (patch) | |
tree | c315c0b32a29b28a05b7efff7e3075d908c5c0b2 /src/gallium/tests/graw/SConscript | |
parent | 0f74efdef05c5c27b3137163d795dc91f34cc114 (diff) |
graw: Undo late loading of graw drivers.
Keith prefers a clean separation between graw applications and
implementations, where apps do not link libgallium.a but instead
get all functionality they need via graw interface.
Although this is not incompatible with late loading of graw drivers, it
it would make it very hard to maintain, as wrappers for every utility
symbol exposed in graw would have to be written or generated somehow.
Diffstat (limited to 'src/gallium/tests/graw/SConscript')
-rw-r--r-- | src/gallium/tests/graw/SConscript | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/tests/graw/SConscript b/src/gallium/tests/graw/SConscript index 5ef395e0336..860a17e13e7 100644 --- a/src/gallium/tests/graw/SConscript +++ b/src/gallium/tests/graw/SConscript @@ -1,8 +1,15 @@ Import('*') +try: + graw +except NameError: + print 'warning: graw library not avaiable: skipping build of graw test' + Return() + env = env.Clone() -env.Prepend(LIBS = gallium) +env.Prepend(LIBPATH = [graw.dir]) +env.Prepend(LIBS = ['graw'] + gallium) if platform in ('freebsd8', 'sunos5'): env.Append(LIBS = ['m']) |