mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
scons: Fix old script compatability logic.
Sconscript could be invoked twice if specified in the command line.
This commit is contained in:
parent
58cfbd697d
commit
c32f87c39c
1 changed files with 5 additions and 10 deletions
|
|
@ -1,18 +1,13 @@
|
|||
import os
|
||||
Import('*')
|
||||
|
||||
|
||||
# Compatibility with old build scripts:
|
||||
#
|
||||
if 'mesa' in env['statetrackers']:
|
||||
if 'xlib' in env['winsys']:
|
||||
SConscript([
|
||||
'libgl-xlib/SConscript',
|
||||
])
|
||||
|
||||
if 'gdi' in env['winsys']:
|
||||
SConscript([
|
||||
'libgl-gdi/SConscript',
|
||||
])
|
||||
if 'xlib' in env['winsys'] and 'libgl-xlib' not in env['targets']:
|
||||
env['targets'].append('libgl-xlib')
|
||||
if 'gdi' in env['winsys'] and 'libgl-gdi' not in env['targets']:
|
||||
env['targets'].append('libgl-gdi')
|
||||
|
||||
if not 'graw-xlib' in env['targets'] and not 'graw-null' in env['targets'] and not env['msvc']:
|
||||
# XXX: disable until MSVC can link correctly
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue