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