egl: remove the non-haiku scons build
[mesa.git] / src / SConscript
1 Import('*')
2
3
4 if env['platform'] == 'windows':
5 SConscript('getopt/SConscript')
6
7 SConscript('util/SConscript')
8 SConscript('glsl/SConscript')
9
10 if env['hostonly']:
11 # We are just compiling the things necessary on the host for cross
12 # compilation
13 Return()
14
15 if env['platform'] != 'windows':
16 SConscript('loader/SConscript')
17
18 # When env['gles'] is set, the targets defined in mapi/glapi/SConscript are not
19 # used. libgl-xlib and libgl-gdi adapt themselves to use the targets defined
20 # in mapi/glapi-shared/SConscript. mesa/SConscript also adapts itself to
21 # enable OpenGL ES support.
22 SConscript('mapi/glapi/gen/SConscript')
23 SConscript('mapi/glapi/SConscript')
24
25 # Haiku C++ libGL dispatch (renderers depend on libgl)
26 if env['platform'] in ['haiku']:
27 SConscript('hgl/SConscript')
28
29 SConscript('mesa/SConscript')
30
31 if not env['embedded']:
32 if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'windows'):
33 SConscript('glx/SConscript')
34 if env['platform'] == 'haiku':
35 SConscript('egl/drivers/haiku/SConscript')
36 SConscript('egl/main/SConscript')
37
38 if env['gles']:
39 SConscript('mapi/shared-glapi/SConscript')
40
41 SConscript('gallium/SConscript')
42