SConstruct (9556:463684ff6fd1) SConstruct (9585:ef864175dcc0)
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

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

708 Exit(1)
709
710min_swig_version = '1.3.34'
711if compareVersions(swig_version[2], min_swig_version) < 0:
712 print 'Error: SWIG version', min_swig_version, 'or newer required.'
713 print ' Installed version:', swig_version[2]
714 Exit(1)
715
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

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

708 Exit(1)
709
710min_swig_version = '1.3.34'
711if compareVersions(swig_version[2], min_swig_version) < 0:
712 print 'Error: SWIG version', min_swig_version, 'or newer required.'
713 print ' Installed version:', swig_version[2]
714 Exit(1)
715
716if swig_version[2] == "2.0.9":
717 print '\n' + termcap.Yellow + termcap.Bold + \
718 'Warning: SWIG version 2.0.9 sometimes generates broken code.\n' + \
719 termcap.Normal + \
720 'This problem only affects some platforms and some Python\n' + \
721 'versions. See the following SWIG bug report for details:\n' + \
722 'http://sourceforge.net/p/swig/bugs/1297/\n'
723
724
716# Set up SWIG flags & scanner
717swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
718main.Append(SWIGFLAGS=swig_flags)
719
720# filter out all existing swig scanners, they mess up the dependency
721# stuff for some reason
722scanners = []
723for scanner in main['SCANNERS']:

--- 491 unchanged lines hidden ---
725# Set up SWIG flags & scanner
726swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
727main.Append(SWIGFLAGS=swig_flags)
728
729# filter out all existing swig scanners, they mess up the dependency
730# stuff for some reason
731scanners = []
732for scanner in main['SCANNERS']:

--- 491 unchanged lines hidden ---