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