X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2FSConscript;h=87e2444034cfc637000b26d03ea75eea5ebec8a9;hb=9a7f84d6b28e180ef79349b36de9a5d58a1e2dc9;hp=cf6db730da24c4c3725068ede845848df71d00ef;hpb=6fc532ae05352a5540c658580cde08b1e0e9f84c;p=mesa.git diff --git a/src/SConscript b/src/SConscript index cf6db730da2..87e2444034c 100644 --- a/src/SConscript +++ b/src/SConscript @@ -1,12 +1,33 @@ Import('*') + +if env['platform'] == 'windows': + SConscript('getopt/SConscript') + SConscript('glsl/SConscript') -if 'mesa' in env['statetrackers']: - SConscript('mesa/SConscript') +if env['hostonly']: + # We are just compiling the things necessary on the host for cross + # compilation + Return() + + +# When env['gles'] is set, the targets defined in mapi/glapi/SConscript are not +# used. libgl-xlib and libgl-gdi adapt themselves to use the targets defined +# in mapi/glapi-shared/SConscript. mesa/SConscript also adapts itself to +# enable OpenGL ES support. +SConscript('mapi/glapi/SConscript') +SConscript('mesa/SConscript') + +SConscript('mapi/vgapi/SConscript') + +if env['platform'] != 'embedded': + SConscript('glx/SConscript') + SConscript('egl/main/SConscript') + SConscript('glu/sgi/SConscript') + + if env['gles']: + SConscript('mapi/shared-glapi/SConscript') SConscript('gallium/SConscript') -if platform != 'embedded': - SConscript('glut/glx/SConscript') - SConscript('glew/SConscript')