From 583e41855b0ae6b9a102b39ac62238472f4cf05a Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 1 Nov 2010 15:27:34 +0000 Subject: scons: Disable python state tracker when swig is not present. --- src/gallium/state_trackers/python/SConscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/state_trackers/python') diff --git a/src/gallium/state_trackers/python/SConscript b/src/gallium/state_trackers/python/SConscript index 5cb7960f9b5..b8371865a61 100644 --- a/src/gallium/state_trackers/python/SConscript +++ b/src/gallium/state_trackers/python/SConscript @@ -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') -- cgit v1.2.3