Files
oboe/Win32/configure
Sylae Jiendra Corell 69ffd4cee3 Fixed 64-bit compiliation, edited configure script to allow
setting of 64-bit operations
2014-06-18 14:00:57 -06:00

38 lines
866 B
Python
Executable File

#!/usr/bin/env python
import argparse
import os
import shutil
import subprocess
def main():
args = parser().parse_args()
src_path = os.path.dirname(__file__) or '.'
args.flags = ''
if args.sixfour:
args.flags = '-DENVIRONMENT64'
open('.config.vars', 'w+').write(
'''PREFIX={prefix}
FLAGS={flags}
'''.format(**vars(args)))
def parser():
parser = argparse.ArgumentParser(
prog='configure',
description='''Configure cboe automated build system.
'''
)
parser.add_argument(
'-c', '--compiler', type=str,
help='Compiler prefix, such as i686-w64-mingw32-', dest='prefix', metavar='PREFIX', default=''
)
parser.add_argument(
'--64', action='store_const',
help='Sets flag for 64-bit compiliation', dest='sixfour', const=True, default=False
)
return parser
main()