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