aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/SConscript
blob: 7eecdb24c799d4512a20d942eb72a5aa6962e5e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
Import('*')

# Compatibility with old build scripts:
#
if 'mesa' in env['statetrackers']:
    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 env['dri']:
	SConscript([
		'SConscript.dri'
	])

if 'xorg' in env['statetrackers']:
	if 'vmware' in env['winsys']:
		SConscript([
			'xorg-vmwgfx/SConscript',
		])

if 'egl' in env['statetrackers']:
	SConscript([
		'egl-gdi/SConscript',
	])

# Ideally all non-target directories would produce convenience
# libraries, and the actual shared libraries and other installables
# would be finally assembled in the targets subtree:
#
for target in env['targets']:
    SConscript(os.path.join(target, 'SConscript'))