summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/libgl-xlib
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2016-11-11 12:09:36 -0600
committerTim Rowley <[email protected]>2016-11-21 12:44:47 -0600
commit9aae167e9474b7c220cbc3f172a27c0b6bf9b20a (patch)
treed9f470a239193a8c95d1c597748510bd11c70da3 /src/gallium/targets/libgl-xlib
parent5b4d1500dd3cc43c1d0fc2f83744144fb1742aa9 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/targets/libgl-xlib')
-rw-r--r--src/gallium/targets/libgl-xlib/SConscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/targets/libgl-xlib/SConscript b/src/gallium/targets/libgl-xlib/SConscript
index 0a4f31be86d..d01bb3c2563 100644
--- a/src/gallium/targets/libgl-xlib/SConscript
+++ b/src/gallium/targets/libgl-xlib/SConscript
@@ -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