X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=inline;f=src%2FSConscript;h=777ad23f2c904104b1d0cc4133914bd55f8708ea;hb=a4ebb04214bab1cd9bd41967232ec89441e31744;hp=9116e9beecb3ec2ffb66e3fc6cbb865ba00b4f77;hpb=56f36ed16662f83e0cb29c2c08dce4ce0d3f4912;p=mesa.git diff --git a/src/SConscript b/src/SConscript index 9116e9beecb..777ad23f2c9 100644 --- a/src/SConscript +++ b/src/SConscript @@ -1,10 +1,36 @@ Import('*') -SConscript('gallium/SConscript') -if 'mesa' in env['statetrackers']: - SConscript('mesa/SConscript') +if env['platform'] == 'windows': + SConscript('getopt/SConscript') + +SConscript('glsl/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('glut/glx/SConscript') +SConscript('mapi/vgapi/SConscript') + +if not env['embedded']: + if env['platform'] not in ['windows', 'darwin', 'haiku']: + SConscript('glx/SConscript') + if env['platform'] not in ['darwin', 'haiku', 'sunos']: + SConscript('egl/main/SConscript') + if env['platform'] not in ['darwin']: + SConscript('glu/sgi/SConscript') + + if env['gles']: + SConscript('mapi/shared-glapi/SConscript') + +SConscript('gallium/SConscript') -SConscript('gallium/winsys/SConscript')