return getoutput("xcode-select -print-path")
+def getVisCVersion():
+ text = getoutput("cl.exe")
+ if 'Version 15' in text:
+ return '90'
+ # TODO: Add more tests to get the other versions...
+ else:
+ return 'FIXME'
+
+
def exitIfError(code, msg):
if code != 0:
print(msg)
shutil.rmtree(frameworkRootDir)
if options.mac_universal_binary:
- configure_opts.append("--enable-universal_binary=%s" % options.mac_universal_binary)
+ if options.mac_universal_binary == 'default':
+ if options.osx_cocoa:
+ configure_opts.append("--enable-universal_binary=i386,x86_64")
+ else:
+ configure_opts.append("--enable-universal_binary")
+ else:
+ configure_opts.append("--enable-universal_binary=%s" % options.mac_universal_binary)
print("Configure options: " + repr(configure_opts))
if options.wxpython:
args.append("OFFICIAL_BUILD=1")
+ args.append("COMPILER_VERSION=%s" % getVisCVersion())
args.append("SHARED=1")
args.append("MONOLITHIC=0")
args.append("USE_OPENGL=1")