diff options
author | William Blevins <wblevins@gmail.com> | 2015-05-17 23:57:44 (GMT) |
---|---|---|
committer | William Blevins <wblevins@gmail.com> | 2015-05-17 23:57:44 (GMT) |
commit | b27b2316842dfa291feef332c80f676fd097d809 (patch) | |
tree | 593e0708b52b387658a12105d39ba646be8b2671 /src/engine/SCons/Tool/swig.py | |
parent | 654e4414d80324b2a4c2edf3c685a38feec514f6 (diff) | |
download | SCons-b27b2316842dfa291feef332c80f676fd097d809.zip SCons-b27b2316842dfa291feef332c80f676fd097d809.tar.gz SCons-b27b2316842dfa291feef332c80f676fd097d809.tar.bz2 |
Issue 2264: Added cross-language scanner support.
Diffstat (limited to 'src/engine/SCons/Tool/swig.py')
-rw-r--r-- | src/engine/SCons/Tool/swig.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/engine/SCons/Tool/swig.py b/src/engine/SCons/Tool/swig.py index a315182..959d5fe 100644 --- a/src/engine/SCons/Tool/swig.py +++ b/src/engine/SCons/Tool/swig.py @@ -39,7 +39,6 @@ import subprocess import SCons.Action import SCons.Defaults -import SCons.Scanner import SCons.Tool import SCons.Util import SCons.Node @@ -173,11 +172,6 @@ def generate(env): env['_SWIGINCFLAGS'] = '$( ${_concat(SWIGINCPREFIX, SWIGPATH, SWIGINCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' env['SWIGCOM'] = '$SWIG -o $TARGET ${_SWIGOUTDIR} ${_SWIGINCFLAGS} $SWIGFLAGS $SOURCES' - expr = '^[ \t]*%[ \t]*(?:include|import|extern)[ \t]*(<|"?)([^>\s"]+)(?:>|"?)' - scanner = SCons.Scanner.ClassicCPP("SWIGScan", ".i", "SWIGPATH", expr) - - env.Append(SCANNERS = scanner) - def exists(env): swig = env.get('SWIG') or env.Detect(['swig']) return swig |