[pygccxml-commit] SF.net SVN: pygccxml:[1506] pyplusplus_dev/unittests/autoconfig.py
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2008-12-26 23:56:14
|
Revision: 1506 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1506&view=rev Author: roman_yakovenko Date: 2008-12-26 23:56:12 +0000 (Fri, 26 Dec 2008) Log Message: ----------- porting to linux Modified Paths: -------------- pyplusplus_dev/unittests/autoconfig.py Modified: pyplusplus_dev/unittests/autoconfig.py =================================================================== --- pyplusplus_dev/unittests/autoconfig.py 2008-12-26 23:28:13 UTC (rev 1505) +++ pyplusplus_dev/unittests/autoconfig.py 2008-12-26 23:56:12 UTC (rev 1506) @@ -49,12 +49,15 @@ @staticmethod def create_sconstruct(): + msvc_compiler = '' + if 'linux' not in sys.platform: + msvc_compiler = str( pygccxml.utils.native_compiler.get_version()[1] ) code = [ "import sys" , "env = Environment()" , "if 'linux' not in sys.platform:" - , " env['MSVS'] = {'VERSION': '%s'}" % str( pygccxml.utils.native_compiler.get_version()[1] ) - , " env['MSVS_VERSION'] = '%s'" % str( pygccxml.utils.native_compiler.get_version()[1] ) + , " env['MSVS'] = {'VERSION': '%s'}" % msvc_compiler + , " env['MSVS_VERSION'] = '%s'" % msvc_compiler , " Tool('msvc')(env)" , "t = env.SharedLibrary( target=r'%(target)s'" , " , source=[ %(sources)s ]" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |