SConstruct (8947:217fbc57df05) SConstruct (8960:e7adb2ea547e)
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

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

567# Check for appropriate SWIG version
568swig_version = readCommand(('swig', '-version'), exception='').split()
569# First 3 words should be "SWIG Version x.y.z"
570if len(swig_version) < 3 or \
571 swig_version[0] != 'SWIG' or swig_version[1] != 'Version':
572 print 'Error determining SWIG version.'
573 Exit(1)
574
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

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

567# Check for appropriate SWIG version
568swig_version = readCommand(('swig', '-version'), exception='').split()
569# First 3 words should be "SWIG Version x.y.z"
570if len(swig_version) < 3 or \
571 swig_version[0] != 'SWIG' or swig_version[1] != 'Version':
572 print 'Error determining SWIG version.'
573 Exit(1)
574
575min_swig_version = '1.3.28'
575min_swig_version = '1.3.34'
576if compareVersions(swig_version[2], min_swig_version) < 0:
577 print 'Error: SWIG version', min_swig_version, 'or newer required.'
578 print ' Installed version:', swig_version[2]
579 Exit(1)
580
581# Set up SWIG flags & scanner
582swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
583main.Append(SWIGFLAGS=swig_flags)

--- 459 unchanged lines hidden ---
576if compareVersions(swig_version[2], min_swig_version) < 0:
577 print 'Error: SWIG version', min_swig_version, 'or newer required.'
578 print ' Installed version:', swig_version[2]
579 Exit(1)
580
581# Set up SWIG flags & scanner
582swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
583main.Append(SWIGFLAGS=swig_flags)

--- 459 unchanged lines hidden ---