SConstruct (10416:dd64a2984966) SConstruct (10425:ceb471d74fe9)
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

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

741 Exit(1)
742
743min_swig_version = '2.0.4'
744if compareVersions(swig_version[2], min_swig_version) < 0:
745 print 'Error: SWIG version', min_swig_version, 'or newer required.'
746 print ' Installed version:', swig_version[2]
747 Exit(1)
748
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

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

741 Exit(1)
742
743min_swig_version = '2.0.4'
744if compareVersions(swig_version[2], min_swig_version) < 0:
745 print 'Error: SWIG version', min_swig_version, 'or newer required.'
746 print ' Installed version:', swig_version[2]
747 Exit(1)
748
749# Check for known incompatibilities. The standard library shipped with
750# gcc >= 4.9 does not play well with swig versions prior to 3.0
751if main['GCC'] and compareVersions(gcc_version, '4.9') >= 0 and \
752 compareVersions(swig_version[2], '3.0') < 0:
753 print termcap.Yellow + termcap.Bold + \
754 'Warning: This combination of gcc and swig have' + \
755 ' known incompatibilities.\n' + \
756 ' If you encounter build problems, please update ' + \
757 'swig to 3.0 or later.' + \
758 termcap.Normal
759
749# Set up SWIG flags & scanner
750swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
751main.Append(SWIGFLAGS=swig_flags)
752
753# Check for 'timeout' from GNU coreutils. If present, regressions
754# will be run with a time limit.
755TIMEOUT_version = readCommand(['timeout', '--version'], exception=False)
756main['TIMEOUT'] = TIMEOUT_version and TIMEOUT_version.find('timeout') == 0

--- 613 unchanged lines hidden ---
760# Set up SWIG flags & scanner
761swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
762main.Append(SWIGFLAGS=swig_flags)
763
764# Check for 'timeout' from GNU coreutils. If present, regressions
765# will be run with a time limit.
766TIMEOUT_version = readCommand(['timeout', '--version'], exception=False)
767main['TIMEOUT'] = TIMEOUT_version and TIMEOUT_version.find('timeout') == 0

--- 613 unchanged lines hidden ---