summaryrefslogtreecommitdiff
path: root/src/gallium/SConscript
blob: 76f9ffb58ab32f8726e1aa248a4399fb66fc944c (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Import('env')

# 
# Auxiliary modules
#

SConscript('auxiliary/SConscript')

#
# Drivers
#

SConscript([
    'drivers/failover/SConscript', 
    'drivers/galahad/SConscript',
    'drivers/i915/SConscript', 
    'drivers/i965/SConscript', 
    'drivers/identity/SConscript', 
    'drivers/llvmpipe/SConscript', 
    'drivers/rbug/SConscript',
    'drivers/r300/SConscript', 
    'drivers/softpipe/SConscript',
    'drivers/svga/SConscript', 
    'drivers/trace/SConscript', 
])

if env['dri']:
    # These drivers depend on drm headers
    SConscript([
        # XXX: nouveau drivers have a tight dependency on libdrm, so to enable
        # we need some version logic before we enable them. Also, ATM there is
        # no nouveau target in scons
        #'drivers/nouveau/SConscript', 
        #'drivers/nv50/SConscript', 
        #'drivers/nvfx/SConscript',
        'drivers/r600/SConscript', 
    ])

#
# State trackers
#

# Needed by some state trackers
SConscript('winsys/sw/null/SConscript')

SConscript('state_trackers/python/SConscript')
if env['platform'] != 'embedded':
	SConscript('state_trackers/glx/xlib/SConscript')
	SConscript('state_trackers/dri/SConscript')
	SConscript('state_trackers/xorg/SConscript')
	SConscript('state_trackers/egl/SConscript')
	SConscript('state_trackers/vega/SConscript')

if env['platform'] == 'windows':
	SConscript('state_trackers/wgl/SConscript')

#
# Winsys
# 

SConscript('winsys/SConscript')

#
# Targets
#

SConscript([
    'targets/graw-null/SConscript',
])

if env['x11']:
    SConscript([
        'targets/graw-xlib/SConscript',
        'targets/libgl-xlib/SConscript',
    ])

if env['platform'] == 'windows':
    SConscript([
        'targets/libgl-gdi/SConscript',
        #'egl-gdi/SConscript',
    ])

if env['dri']:
    SConscript([
        'targets/SConscript.dri',
	    'targets/dri-i915/SConscript',
	    'targets/dri-i965/SConscript',
	    #'targets/dri-nouveau/SConscript',
	    'targets/dri-r300/SConscript',
        'targets/dri-r600/SConscript',
	    'targets/dri-swrast/SConscript',
	    'targets/dri-vmwgfx/SConscript',
    ])

if env['xorg']:
    SConscript([
        #'targets/xorg-i915/SConscript',
        #'targets/xorg-i965/SConscript',
        #'targets/xorg-nouveau/SConscript',
        #'targets/xorg-radeon/SConscript',
        'targets/xorg-vmwgfx/SConscript',
    ])


#
# Unit tests & tools
#

if env['platform'] != 'embedded':
	SConscript('tests/unit/SConscript')
	SConscript('tests/graw/SConscript')