From: José Fonseca Date: Mon, 1 Nov 2010 15:27:34 +0000 (+0000) Subject: scons: Disable python state tracker when swig is not present. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=583e41855b0ae6b9a102b39ac62238472f4cf05a;p=mesa.git scons: Disable python state tracker when swig is not present. --- 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')