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