97187030abc2c5195ecb09d181b49462c416f431
[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']:
8 SConscript([
9 'libgl-xlib/SConscript',
10 ])
11
12 if 'gdi' in env['winsys']:
13 SConscript([
14 'libgl-gdi/SConscript',
15 ])
16
17 if not 'graw-xlib' in env['targets'] and not 'graw-null' in env['targets'] and not env['msvc']:
18 # XXX: disable until MSVC can link correctly
19 SConscript('graw-null/SConscript')
20
21
22 if env['dri']:
23 SConscript([
24 'SConscript.dri'
25 ])
26
27 if 'xorg' in env['statetrackers']:
28 if 'vmware' in env['winsys']:
29 SConscript([
30 'xorg-vmwgfx/SConscript',
31 ])
32
33 if 'egl' in env['statetrackers']:
34 SConscript([
35 'egl-swrast/SConscript',
36 'egl-apis/SConscript',
37 ])
38
39 # Ideally all non-target directories would produce convenience
40 # libraries, and the actual shared libraries and other installables
41 # would be finally assembled in the targets subtree:
42 #
43 for target in env['targets']:
44 SConscript(os.path.join(target, 'SConscript'))
45
46
47