mingw support

This commit is contained in:
Joseph Coffland 2016-03-04 14:04:01 -08:00
parent d6c856a8f2
commit 7e7acd3a00
1 changed files with 7 additions and 2 deletions

View File

@ -49,13 +49,18 @@ if env.GetPackageType() != 'rpm':
import shutil
shutil.rmtree(target_dir, True)
gui = env.RunDistUtils(Dir(target_dir), 'setup.py')
if int(env.get('cross_mingw', 0)):
# Use the cross compiled Python
gui = env.Command(target_dir, 'setup.py', 'python2 setup.py build')
else:
gui = env.RunDistUtils(Dir(target_dir), 'setup.py')
Default(gui)
AlwaysBuild(gui)
# Package
if env['PLATFORM'] == 'darwin' or env.GetPackageType() == 'rpm':
if env['PLATFORM'] == 'darwin' or env.GetPackageType() == 'rpm':
pkg = env.Packager(
'FAHControl',