graw: Undo late loading of graw drivers.
[mesa.git] / src / gallium / tests / graw / SConscript
index 5ef395e0336bbece4c6bbf1e789358e6b21fac4b..860a17e13e71870515bb1489c59500e87f4ead6f 100644 (file)
@@ -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'])