gallium: Add support for SWR compilation
[mesa.git] / src / gallium / targets / osmesa / SConscript
index 7a2a00c85fe210c309bedb5f135ec6ed8d5d8c62..47937a23d29dfcdad28efd9946255f8d0a219e49 100644 (file)
@@ -30,6 +30,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'] == 'windows':
     if env['gcc'] and env['machine'] != 'x86_64':
         sources += ['osmesa.mingw.def']