Add MingW as "platform"

This commit is contained in:
Nathan Letwory
2012-04-28 08:45:55 +00:00
parent 3cceab304a
commit 5d70a6aedf
2 changed files with 9 additions and 2 deletions

View File

@@ -48,7 +48,8 @@ def get_platform(filename):
tokens = filename.split("-")
platforms = ('osx', 'mac', 'bsd',
'win', 'linux', 'source',
'solaris')
'solaris',
'mingw')
platform_tokens = []
found = False

View File

@@ -622,7 +622,13 @@ def buildslave(target=None, source=None, env=None):
else:
extension = '.tar.bz2'
platform = env['OURPLATFORM'].split('-')[0]
if env['OURPLATFORM'] == 'win32-mingw':
platform = 'mingw32'
elif env['OURPLATFORM'] == 'win32-mingw':
platform = 'mingw64'
else:
platform = env['OURPLATFORM'].split('-')[0]
if platform == 'linux':
import platform