scons: Use libdrm options only where needed.
Prevents needless recompiles when switching dri=yes to no.
This commit is contained in:
parent
9faf9529f3
commit
9fc93b8041
10
SConstruct
10
SConstruct
|
@ -167,16 +167,6 @@ if platform in ('posix', 'linux', 'freebsd', 'darwin'):
|
||||||
'dl',
|
'dl',
|
||||||
])
|
])
|
||||||
|
|
||||||
# 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
|
# LLVM support in the Draw module
|
||||||
if drawllvm:
|
if drawllvm:
|
||||||
env.Append(CPPDEFINES = ['DRAW_LLVM'])
|
env.Append(CPPDEFINES = ['DRAW_LLVM'])
|
||||||
|
|
|
@ -7,6 +7,8 @@ if env['dri']:
|
||||||
|
|
||||||
env = env.Clone()
|
env = env.Clone()
|
||||||
|
|
||||||
|
env.ParseConfig('pkg-config --cflags --libs libdrm')
|
||||||
|
|
||||||
env.Append(CPPPATH = [
|
env.Append(CPPPATH = [
|
||||||
'#/src/mesa',
|
'#/src/mesa',
|
||||||
'#/src/gallium/state_trackers/dri/common',
|
'#/src/gallium/state_trackers/dri/common',
|
||||||
|
|
Loading…
Reference in New Issue