Revision: 246
Author: roman_yakovenko
Date: 2006-06-24 14:06:52 -0700 (Sat, 24 Jun 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=246&view=rev
Log Message:
-----------
porting to MacOS - patches from dtgarnier
Modified Paths:
--------------
pygccxml_dev/pygccxml/parser/source_reader.py
Modified: pygccxml_dev/pygccxml/parser/source_reader.py
===================================================================
--- pygccxml_dev/pygccxml/parser/source_reader.py 2006-06-24 19:03:11 UTC (rev 245)
+++ pygccxml_dev/pygccxml/parser/source_reader.py 2006-06-24 21:06:52 UTC (rev 246)
@@ -90,7 +90,7 @@
if sys.platform == 'win32':
gccxml_name = 'gccxml' + '.exe'
environment_var_delimiter = ';'
- elif sys.platform == 'linux2':
+ elif sys.platform == 'linux2' or sys.platform == 'darwin':
gccxml_name = 'gccxml'
environment_var_delimiter = ':'
else:
@@ -123,7 +123,7 @@
#returns
cmd = []
#first is gccxml executable
- if 'win' in sys.platform:
+ if 'win32' in sys.platform:
cmd.append( '"%s"' % os.path.normpath( self.__config.gccxml_path ) )
else:
cmd.append( '%s' % os.path.normpath( self.__config.gccxml_path ) )
@@ -140,7 +140,7 @@
cmd.append( '-fxml-start="%s"' % ','.join( self.__config.start_with_declarations ) )
cmd_line = ' '.join(cmd)
- if 'win' in sys.platform :
+ if 'win32' in sys.platform :
cmd_line = '"%s"' % cmd_line
logger.debug( 'gccxml cmd: %s' % cmd_line )
return cmd_line
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|