Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / mesa / src / gallium / SConscript
blob3072ee936f2793a834f55bacec6875485cba1d2b
1 Import('env')
3
4 # Auxiliary modules
7 SConscript('auxiliary/SConscript')
10 # Drivers
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', 
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     ])
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     #     ])
50 # State trackers
53 # Needed by some state trackers
54 SConscript('winsys/sw/null/SConscript')
56 if not env['embedded']:
57     SConscript('state_trackers/vega/SConscript')
58     SConscript('state_trackers/egl/SConscript')
60     if env['x11']:
61         SConscript('state_trackers/glx/xlib/SConscript')
63     if env['dri']:
64         SConscript('state_trackers/dri/SConscript')
66     if env['dri'] and env['xorg']:
67         SConscript('state_trackers/xorg/SConscript')
69     if env['platform'] == 'windows':
70         SConscript('state_trackers/wgl/SConscript')
73 # Winsys
74
76 SConscript('winsys/SConscript')
79 # Targets
82 SConscript([
83     'targets/graw-null/SConscript',
86 if not env['embedded']:
87     SConscript([
88         'targets/egl-static/SConscript'
89     ])
91     if env['x11']:
92         SConscript([
93             'targets/graw-xlib/SConscript',
94             'targets/libgl-xlib/SConscript',
95         ])
97     if env['platform'] == 'windows':
98         SConscript([
99             'targets/graw-gdi/SConscript',
100             'targets/libgl-gdi/SConscript',
101         ])
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                 'targets/dri-i965/SConscript',
114             ])
115         if env['drm_radeon']:
116             SConscript([
117                 'targets/dri-r300/SConscript',
118                 'targets/dri-r600/SConscript',
119             ])
121     if env['xorg'] and env['drm']:
122         SConscript([
123             #'targets/xorg-i915/SConscript',
124             #'targets/xorg-i965/SConscript',
125             #'targets/xorg-nouveau/SConscript',
126             #'targets/xorg-radeon/SConscript',
127             'targets/xorg-vmwgfx/SConscript',
128         ])
132 # Unit tests & tools
135 if not env['embedded']:
136     SConscript('tests/unit/SConscript')
137     SConscript('tests/graw/SConscript')