scons: MacOSX build fixes.
[mesa.git] / src / gallium / SConscript
1 Import('env')
2
3 #
4 # Auxiliary modules
5 #
6
7 SConscript('auxiliary/SConscript')
8
9 #
10 # Drivers
11 #
12
13 SConscript([
14 'drivers/failover/SConscript',
15 'drivers/galahad/SConscript',
16 'drivers/identity/SConscript',
17 'drivers/llvmpipe/SConscript',
18 'drivers/rbug/SConscript',
19 'drivers/softpipe/SConscript',
20 'drivers/svga/SConscript',
21 'drivers/trace/SConscript',
22 ])
23
24 if not env['msvc']:
25 # These drivers do not build on MSVC compilers
26 SConscript([
27 'drivers/i915/SConscript',
28 'drivers/i965/SConscript',
29 'drivers/r300/SConscript',
30 ])
31
32 if env['drm']:
33 # These drivers depend on drm headers
34 if env['drm_radeon']:
35 SConscript([
36 'drivers/r600/SConscript',
37 ])
38 # XXX: nouveau drivers have a tight dependency on libdrm, so to enable
39 # we need some version logic before we enable them. Also, ATM there is
40 # no nouveau target in scons
41 # if env['drm_nouveau']:
42 # SConscript([
43 # 'drivers/nouveau/SConscript',
44 # 'drivers/nv50/SConscript',
45 # 'drivers/nvc0/SConscript',
46 # 'drivers/nvfx/SConscript',
47 # ])
48
49 #
50 # State trackers
51 #
52
53 # Needed by some state trackers
54 SConscript('winsys/sw/null/SConscript')
55
56 if not env['embedded']:
57 SConscript('state_trackers/vega/SConscript')
58 if env['platform'] not in ['darwin']:
59 SConscript('state_trackers/egl/SConscript')
60
61 if env['x11']:
62 SConscript('state_trackers/glx/xlib/SConscript')
63
64 if env['dri']:
65 SConscript('state_trackers/dri/SConscript')
66
67 if env['dri'] and env['xorg']:
68 SConscript('state_trackers/xorg/SConscript')
69
70 if env['platform'] == 'windows':
71 SConscript('state_trackers/wgl/SConscript')
72
73 #
74 # Winsys
75 #
76
77 SConscript('winsys/SConscript')
78
79 #
80 # Targets
81 #
82
83 SConscript([
84 'targets/graw-null/SConscript',
85 ])
86
87 if not env['embedded']:
88 if env['platform'] not in ['darwin']:
89 SConscript([
90 'targets/egl-static/SConscript'
91 ])
92
93 if env['x11']:
94 SConscript([
95 'targets/graw-xlib/SConscript',
96 'targets/libgl-xlib/SConscript',
97 ])
98
99 if env['platform'] == 'windows':
100 SConscript([
101 'targets/graw-gdi/SConscript',
102 'targets/libgl-gdi/SConscript',
103 ])
104
105 if env['dri']:
106 SConscript([
107 'targets/SConscript.dri',
108 'targets/dri-swrast/SConscript',
109 'targets/dri-vmwgfx/SConscript',
110 #'targets/dri-nouveau/SConscript',
111 ])
112 if env['drm_intel']:
113 SConscript([
114 'targets/dri-i915/SConscript',
115 'targets/dri-i965/SConscript',
116 ])
117 if env['drm_radeon']:
118 SConscript([
119 'targets/dri-r300/SConscript',
120 'targets/dri-r600/SConscript',
121 ])
122
123 if env['xorg'] and env['drm']:
124 SConscript([
125 #'targets/xorg-i915/SConscript',
126 #'targets/xorg-i965/SConscript',
127 #'targets/xorg-nouveau/SConscript',
128 #'targets/xorg-radeon/SConscript',
129 'targets/xorg-vmwgfx/SConscript',
130 ])
131
132
133 #
134 # Unit tests & tools
135 #
136
137 if not env['embedded']:
138 SConscript('tests/unit/SConscript')
139 SConscript('tests/graw/SConscript')