Merge remote branch 'origin/master' into nv50-compiler
[mesa.git] / src / gallium / targets / SConscript
1 import os
2 Import('*')
3
4 # Compatibility with old build scripts:
5 #
6 if 'mesa' in env['statetrackers']:
7 if 'xlib' in env['winsys'] and 'libgl-xlib' not in env['targets']:
8 env['targets'].append('libgl-xlib')
9 if 'gdi' in env['winsys'] and 'libgl-gdi' not in env['targets']:
10 env['targets'].append('libgl-gdi')
11
12 if not 'graw-xlib' in env['targets'] and not 'graw-null' in env['targets'] and not env['msvc']:
13 # XXX: disable until MSVC can link correctly
14 SConscript('graw-null/SConscript')
15
16
17 if env['dri']:
18 SConscript([
19 'SConscript.dri'
20 ])
21
22 if 'xorg' in env['statetrackers']:
23 if 'vmware' in env['winsys']:
24 SConscript([
25 'xorg-vmwgfx/SConscript',
26 ])
27
28 if 'egl' in env['statetrackers']:
29 SConscript([
30 'egl-gdi/SConscript',
31 ])
32
33 # Ideally all non-target directories would produce convenience
34 # libraries, and the actual shared libraries and other installables
35 # would be finally assembled in the targets subtree:
36 #
37 for target in env['targets']:
38 SConscript(os.path.join(target, 'SConscript'))
39
40
41