From 9aae167e9474b7c220cbc3f172a27c0b6bf9b20a Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Fri, 11 Nov 2016 12:09:36 -0600 Subject: gallium: Add support for SWR compilation Include swr library and include -DHAVE_SWR in the compile line. v3: split to a separate commit Reviewed-by: Emil Velikov --- src/gallium/targets/osmesa/SConscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/targets/osmesa') diff --git a/src/gallium/targets/osmesa/SConscript b/src/gallium/targets/osmesa/SConscript index 7a2a00c85fe..47937a23d29 100644 --- a/src/gallium/targets/osmesa/SConscript +++ b/src/gallium/targets/osmesa/SConscript @@ -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'] -- cgit v1.2.3