-# DRI
-if dri:
- env.ParseConfig('pkg-config --cflags --libs libdrm')
- env.Append(CPPDEFINES = [
- ('USE_EXTERNAL_DXTN_LIB', '1'),
- 'IN_DRI_DRIVER',
- 'GLX_DIRECT_RENDERING',
- 'GLX_INDIRECT_RENDERING',
- ])
-
-# LLVM support in the Draw module
-if drawllvm:
- # See also http://www.scons.org/wiki/UsingPkgConfig
- # currently --ldflags --libsdisabled since the driver will force the correct linkage
- env.ParseConfig('llvm-config --cflags backend bitreader engine instrumentation interpreter ipo')
- env.Append(CPPDEFINES = ['DRAW_LLVM'])
-
-# libGL
-if platform in ('linux', 'freebsd', 'darwin'):
- env.Append(LIBS = [
- 'X11',
- 'Xext',
- 'Xxf86vm',
- 'Xdamage',
- 'Xfixes',
- ])
-