scons: Fix SCons build infrastructure for FreeBSD.
[mesa.git] / src / gallium / SConscript
index 4413bc8742b36e2c52dd89341a2b7fe3327ddfbc..f281f4c6567dc39f37dc0f160ccf8a145415e63c 100644 (file)
@@ -34,6 +34,10 @@ if env['drm']:
             'drivers/r300/SConscript',
             'drivers/r600/SConscript',
         ])
+        if env['llvm']:
+            SConscript([
+                'drivers/radeonsi/SConscript',
+            ])
     # XXX: nouveau drivers have a tight dependency on libdrm, so to enable
     # we need some version logic before we enable them. Also, ATM there is
     # no nouveau target in scons
@@ -54,7 +58,7 @@ SConscript('winsys/sw/null/SConscript')
 
 if not env['embedded']:
     SConscript('state_trackers/vega/SConscript')
-    if env['platform'] not in ['darwin', 'haiku']:
+    if env['platform'] not in ('cygwin', 'darwin', 'haiku', 'sunos'):
         SConscript('state_trackers/egl/SConscript')
 
     if env['x11']:
@@ -120,7 +124,7 @@ SConscript([
 ])
 
 if not env['embedded']:
-    if env['platform'] not in ['darwin', 'haiku']:
+    if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'sunos'):
         SConscript([
             'targets/egl-static/SConscript'
         ])
@@ -153,6 +157,10 @@ if not env['embedded']:
                 'targets/dri-r300/SConscript',
                 'targets/dri-r600/SConscript',
             ])
+            if env['llvm']:
+                SConscript([
+                    'targets/dri-radeonsi/SConscript',
+                ])
 
     if env['xorg'] and env['drm']:
         SConscript([