python: More build fixes.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Mar 2010 12:00:13 +0000 (12:00 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Mar 2010 12:00:13 +0000 (12:00 +0000)
src/gallium/SConscript
src/gallium/state_trackers/python/SConscript
src/gallium/state_trackers/python/st_device.c
src/gallium/winsys/SConscript

index ba541f9636778a1754194882a5627e78876eea40..c833d83e65b947f5653ecb4bd53fd3826f43c36c 100644 (file)
@@ -7,6 +7,9 @@ SConscript('auxiliary/SConscript')
 for driver in env['drivers']:
        SConscript(os.path.join('drivers', driver, 'SConscript'))
 
+# Needed by some state trackers
+SConscript('winsys/null/SConscript')
+
 SConscript('state_trackers/python/SConscript')
 if platform != 'embedded':
        SConscript('state_trackers/glx/xlib/SConscript')
index 8010f122b73e4d72bb068b81a540268fec86e3b0..2b44c1373730dad345a006ed7fa6b2d37c83a3e5 100644 (file)
@@ -38,8 +38,9 @@ if 'python' in env['statetrackers']:
     ]
 
     env.Prepend(LIBS = [
+        ws_null,
         trace,
-        gallium
+        gallium,
     ])
 
     if 'llvmpipe' in env['drivers']:
index 3aeb6226d008d8ebca782fcda5324d85078acb01..335e8e7f0d854c1d6dc7b8a3443c47d0d6b29ad5 100644 (file)
@@ -34,6 +34,7 @@
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "util/u_simple_shaders.h"
+#include "trace/tr_public.h"
 
 #include "st_device.h"
 #include "st_winsys.h"
@@ -84,6 +85,10 @@ st_device_create(boolean hardware)
    else
       screen = st_software_screen_create();
 
+   screen = trace_screen_create(screen);
+   if (!screen)
+      goto no_screen;
+
    st_dev = CALLOC_STRUCT(st_device);
    if (!st_dev)
       goto no_device;
index 4567d1744793c4d8f742e73e4ae99be6ffe78568..30c3378dfff432dac799422690b4f2f5f98300c3 100644 (file)
@@ -1,9 +1,5 @@
 Import('*')
 
-SConscript([
-    'null/SConscript',
-])
-
 if env['dri']:
        SConscript([
                'drm/SConscript',