Deleted Added
sdiff udiff text old ( 4494:b7c909b5a5e9 ) new ( 4554:9beeb46559ec )
full compact
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 256 unchanged lines hidden (view full) ---

265
266min_swig_version = '1.3.28'
267if compare_versions(swig_version[2], min_swig_version) < 0:
268 print 'Error: SWIG version', min_swig_version, 'or newer required.'
269 print ' Installed version:', swig_version[2]
270 Exit(1)
271
272# Set up SWIG flags & scanner
273env.Append(SWIGFLAGS=Split('-c++ -python -modern $_CPPINCFLAGS'))
274
275import SCons.Scanner
276
277swig_inc_re = '^[ \t]*[%,#][ \t]*(?:include|import)[ \t]*(<|")([^>"]+)(>|")'
278
279swig_scanner = SCons.Scanner.ClassicCPP("SwigScan", ".i", "CPPPATH",
280 swig_inc_re)
281
282env.Append(SCANNERS = swig_scanner)
283
284# Platform-specific configuration. Note again that we assume that all
285# builds under a given build root run on the same host platform.
286conf = Configure(env,
287 conf_dir = joinpath(build_root, '.scons_config'),
288 log_file = joinpath(build_root, 'scons_config.log'))
289
290# Find Python include and library directories for embedding the
291# interpreter. For consistency, we will use the same Python

--- 386 unchanged lines hidden ---