'PKG_CONFIG_PATH', '/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig') env["AS"] = os.getenv('AS', 'as -arch i386') env["CC"] = os.getenv('CC', 'clang -arch i386 -mmacosx-version-min=10.6') env["MONO_SDK_PATH"] = os.getenv( 'MONO_SDK_PATH', '/Library/Frameworks/Mono.framework/Versions/Current') env["PACKAGEING_FOR_MAC"] = os.getenv('PACKAGEING_FOR_MAC', '0') env["PACKAGEING_FOR_LINUX"] = os.getenv('PACKAGEING_FOR_LINUX', '0') env["IGNORE_BUILD"] = os.getenv('IGNORE_BUILD', '0') is_x86 = 'x86' in sys.argv if env['IGNORE_BUILD'] == '0': aceutils.mkdir('build') if aceutils.isWin(): #import winreg #reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) #key = winreg.OpenKey(reg, r"SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0") #msbuild_path = winreg.QueryValueEx(key, 'MSBuildToolsPath')[0] + 'MSBuild.exe' candidates = [ r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe", r"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe", r"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe", ] candidate = None for candidate in candidates: if os.path.exists(candidate): msbuild_path = candidate
env["PKG_CONFIG_PATH"] = os.getenv( 'PKG_CONFIG_PATH', '/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig') env["AS"] = os.getenv('AS', 'as -arch i386') env["CC"] = os.getenv('CC', 'clang -arch i386 -mmacosx-version-min=10.6') env["MONO_SDK_PATH"] = os.getenv( 'MONO_SDK_PATH', '/Library/Frameworks/Mono.framework/Versions/Current') env["PACKAGEING_FOR_MAC"] = os.getenv('PACKAGEING_FOR_MAC', '0') env["IGNORE_BUILD"] = os.getenv('IGNORE_BUILD', '0') is_x86 = 'x86' in sys.argv if env['IGNORE_BUILD'] == '0': aceutils.mkdir('build') if aceutils.isWin(): #import winreg #reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) #key = winreg.OpenKey(reg, r"SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0") #msbuild_path = winreg.QueryValueEx(key, 'MSBuildToolsPath')[0] + 'MSBuild.exe' candidates = [ r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe", r"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe", r"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe", ] candidate = None for candidate in candidates: if os.path.exists(candidate): msbuild_path = candidate