Use MSBuild to build on Windows
This commit is contained in:
		
					parent
					
						
							
								3d83416c04
							
						
					
				
			
			
				commit
				
					
						a5b118ce34
					
				
			
		
					 1 changed files with 16 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -11,10 +11,25 @@ GYP = {
 | 
			
		|||
	'win32': 'gyp.bat',
 | 
			
		||||
}[sys.platform]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def main():
 | 
			
		||||
    os.chdir(SOURCE_ROOT)
 | 
			
		||||
    run_gyp()
 | 
			
		||||
    build()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def run_gyp():
 | 
			
		||||
    subprocess.check_call([GYP, '--depth', '.', 'brightray.gyp'])
 | 
			
		||||
    subprocess.check_call(['xcodebuild'])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def build():
 | 
			
		||||
    if sys.platform == 'darwin':
 | 
			
		||||
        subprocess.check_call(['xcodebuild'])
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
    assert sys.platform == 'win32', sys.platform
 | 
			
		||||
    msbuild = os.path.join(os.environ['windir'], 'Microsoft.NET', 'Framework', 'v4.0.30319', 'MSBuild.exe')
 | 
			
		||||
    subprocess.check_call([msbuild, 'brightray.sln'])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue