SConstruct (9846:a4b5fd8937c9) SConstruct (9877:b072123bc071)
1# -*- mode:python -*-
2
3# Copyright (c) 2013 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

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

725 Exit(1)
726
727min_swig_version = '1.3.34'
728if compareVersions(swig_version[2], min_swig_version) < 0:
729 print 'Error: SWIG version', min_swig_version, 'or newer required.'
730 print ' Installed version:', swig_version[2]
731 Exit(1)
732
1# -*- mode:python -*-
2
3# Copyright (c) 2013 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

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

725 Exit(1)
726
727min_swig_version = '1.3.34'
728if compareVersions(swig_version[2], min_swig_version) < 0:
729 print 'Error: SWIG version', min_swig_version, 'or newer required.'
730 print ' Installed version:', swig_version[2]
731 Exit(1)
732
733if swig_version[2] in ["2.0.9", "2.0.10"]:
733# Older versions of swig do not play well with more recent versions of
734# gcc due to assumptions on implicit includes (cstddef) and use of
735# namespaces
736if main['GCC'] and compareVersions(gcc_version, '4.6') > 0 and \
737 compareVersions(swig_version[2], '2') < 0:
734 print '\n' + termcap.Yellow + termcap.Bold + \
738 print '\n' + termcap.Yellow + termcap.Bold + \
735 'Warning: SWIG version 2.0.9/10 sometimes generates broken code.\n' + \
739 'Warning: SWIG 1.x cause issues with gcc 4.6 and later.\n' + \
736 termcap.Normal + \
740 termcap.Normal + \
737 'This problem only affects some platforms and some Python\n' + \
738 'versions. See the following SWIG bug report for details:\n' + \
739 'http://sourceforge.net/p/swig/bugs/1297/\n'
741 'Use SWIG 2.x to avoid assumptions on implicit includes\n' + \
742 'and use of namespaces\n'
740
743
741
742# Set up SWIG flags & scanner
743swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
744main.Append(SWIGFLAGS=swig_flags)
745
746# filter out all existing swig scanners, they mess up the dependency
747# stuff for some reason
748scanners = []
749for scanner in main['SCANNERS']:

--- 505 unchanged lines hidden ---
744# Set up SWIG flags & scanner
745swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
746main.Append(SWIGFLAGS=swig_flags)
747
748# filter out all existing swig scanners, they mess up the dependency
749# stuff for some reason
750scanners = []
751for scanner in main['SCANNERS']:

--- 505 unchanged lines hidden ---