X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2FSConscript;h=7b614daeea1cf18f0b28e43628d901fb8893108a;hp=cf6db730da24c4c3725068ede845848df71d00ef;hb=213b9004a6ee033a16af3dcd187aa68b56c39858;hpb=ff20543c815a14fddad1efaaef1610454a1924d4 diff --git a/src/SConscript b/src/SConscript index cf6db730da2..7b614daeea1 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() -SConscript('gallium/SConscript') -if platform != 'embedded': +# 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('egl/main/SConscript') + SConscript('glu/sgi/SConscript') SConscript('glut/glx/SConscript') - SConscript('glew/SConscript') + + if env['gles']: + SConscript('mapi/shared-glapi/SConscript') + +SConscript('gallium/SConscript') +