scons: Disable python state tracker when swig is not present.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Nov 2010 15:27:34 +0000 (15:27 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Nov 2010 15:27:34 +0000 (15:27 +0000)
src/gallium/state_trackers/python/SConscript

index 5cb7960f9b59e5fec1708cfbb428995b14845016..b8371865a61a6c4da63b2d831c525948a54d8c1c 100644 (file)
@@ -7,6 +7,9 @@ if env['toolchain'] == 'crossmingw':
     # Cross-compilation not supported
     Return()
 
+if not env.Detect(['swig']):
+    Return()
+
 env = env.Clone()
 
 env.Tool('python')