gdi: Fix the build when llvmpipe is requested (the default) but llvm is not present.
This commit is contained in:
parent
44c6c20b69
commit
b858257ca6
|
@ -18,14 +18,20 @@ if env['platform'] == 'windows':
|
|||
'ws2_32',
|
||||
])
|
||||
|
||||
if 'llvmpipe' in env['drivers']:
|
||||
sources = ['gdi_llvmpipe_winsys.c']
|
||||
drivers = [llvmpipe]
|
||||
env.Tool('llvm')
|
||||
elif 'softpipe' in env['drivers']:
|
||||
sources = []
|
||||
drivers = []
|
||||
|
||||
if 'softpipe' in env['drivers']:
|
||||
sources = ['gdi_softpipe_winsys.c']
|
||||
drivers = [softpipe]
|
||||
else:
|
||||
|
||||
if 'llvmpipe' in env['drivers']:
|
||||
env.Tool('llvm')
|
||||
if 'LLVM_VERSION' in env:
|
||||
sources = ['gdi_llvmpipe_winsys.c']
|
||||
drivers = [llvmpipe]
|
||||
|
||||
if not sources or not drivers:
|
||||
print 'warning: softpipe or llvmpipe not selected, gdi winsys disabled'
|
||||
Return()
|
||||
|
||||
|
|
Loading…
Reference in New Issue