scons: r300/r600 now depends on libdrm.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 7 Feb 2012 11:16:35 +0000 (11:16 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 7 Feb 2012 11:40:58 +0000 (11:40 +0000)
As they now indirectly include on libdrm/radeon_surface.h.

src/gallium/SConscript
src/gallium/drivers/r300/SConscript
src/gallium/drivers/r600/SConscript
src/gallium/winsys/SConscript [deleted file]
src/gallium/winsys/radeon/drm/SConscript

index ae946377bd05b192707fcfdfc4dd3aa9563f6a74..4413bc8742b36e2c52dd89341a2b7fe3327ddfbc 100644 (file)
@@ -25,13 +25,13 @@ if not env['msvc']:
     # These drivers do not build on MSVC compilers
     SConscript([
         'drivers/i915/SConscript',
-        'drivers/r300/SConscript',
     ])
 
 if env['drm']:
     # These drivers depend on drm headers
     if env['drm_radeon']:
         SConscript([
+            'drivers/r300/SConscript',
             'drivers/r600/SConscript',
         ])
     # XXX: nouveau drivers have a tight dependency on libdrm, so to enable
@@ -73,7 +73,43 @@ if not env['embedded']:
 # Winsys
 # 
 
-SConscript('winsys/SConscript')
+SConscript([
+    'winsys/sw/wrapper/SConscript',
+])
+    
+if env['x11']:
+    SConscript([
+        'winsys/sw/xlib/SConscript',
+    ])
+
+if env['platform'] == 'windows':
+    SConscript([
+        'winsys/sw/gdi/SConscript',
+    ])
+
+if not env['msvc']:
+    SConscript([
+        'winsys/i915/sw/SConscript',
+    ])
+
+if env['dri']:
+    SConscript([
+        'winsys/sw/dri/SConscript',
+    ])
+
+    SConscript([
+        'winsys/svga/drm/SConscript',
+    ])
+
+    if env['drm_intel']:
+        SConscript([
+            'winsys/i915/drm/SConscript',
+        ])
+
+    if env['drm_radeon']:
+        SConscript([
+            'winsys/radeon/drm/SConscript',
+        ])
 
 #
 # Targets
index e6a05db64f137dbbfdabd721459438a14613c2db..7ff073205f6ff4816a8d6a80e4e1c7b08b22f07d 100644 (file)
@@ -1,6 +1,9 @@
 Import('*')
 
 env = env.Clone()
+
+env.PkgUseModules('DRM_RADEON')
+
 env.Append(CPPPATH = [
     '#/include', 
     '#/src/mesa',
index e400c38b46ee044623bb855727e38096c80f86d6..658be500dc191bc991ddbe758c7320fea6a951c9 100644 (file)
@@ -2,6 +2,8 @@ Import('*')
 
 env = env.Clone()
 
+env.PkgUseModules('DRM_RADEON')
+
 env.Append(CPPPATH = [
     '#/include',
 ])
diff --git a/src/gallium/winsys/SConscript b/src/gallium/winsys/SConscript
deleted file mode 100644 (file)
index f3a2453..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-Import('*')
-
-
-SConscript([
-    'sw/wrapper/SConscript',
-])
-
-SConscript([
-    'sw/xlib/SConscript',
-])
-
-SConscript([
-    'sw/gdi/SConscript',
-])
-
-SConscript([
-    'i915/sw/SConscript',
-])
-
-if env['dri']:
-    SConscript([
-        'sw/dri/SConscript',
-    ])
-
-    SConscript([
-        'svga/drm/SConscript',
-    ])
-
-    SConscript([
-        'i915/drm/SConscript',
-    ])
-
-    SConscript([
-        'radeon/drm/SConscript',
-    ])
index e5048d6255d01fba15b989238a5e74b2c4ce1ac1..8edd97b24fbef99b5d6b1a81e70aa51bef02d18b 100644 (file)
@@ -4,7 +4,7 @@ env = env.Clone()
 
 radeon_sources = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
 
-env.PkgUseModules('DRM')
+env.PkgUseModules('DRM_RADEON')
 
 radeonwinsys = env.ConvenienceLibrary(
     target ='radeonwinsys',