gallium: Add support for SWR compilation
[mesa.git] / src / gallium / targets / libgl-xlib / SConscript
index 0a4f31be86dc1e2516f99df86a10e2ffabab3129..d01bb3c2563b5e684885c51dfe854622ed48e02d 100644 (file)
@@ -48,6 +48,10 @@ if env['llvm']:
     env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
     env.Prepend(LIBS = [llvmpipe])
 
+    if env['swr']:
+        env.Append(CPPDEFINES = 'HAVE_SWR')
+        env.Prepend(LIBS = [swr])
+
 if env['platform'] != 'darwin':
     # Disallow undefined symbols, except with Address Sanitizer, since libasan
     # is not linked on shared libs, as it should be LD_PRELOAD'ed instead