2015-03-03 21:45:47 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#!/usr/bin/env python
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# Build the project with Biicode.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-03-04 09:22:52 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import glob, os, shutil
							 | 
						
					
						
							
								
									
										
										
										
											2015-03-03 21:45:47 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								from subprocess import check_call
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								project_dir = 'biicode_project'
							 | 
						
					
						
							
								
									
										
										
										
											2015-03-04 09:24:54 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								check_call(['bii', 'init', project_dir])
							 | 
						
					
						
							
								
									
										
										
										
											2015-03-03 21:45:47 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								cppformat_dir = os.path.join(project_dir, 'blocks/vitaut/cppformat')
							 | 
						
					
						
							
								
									
										
										
										
											2015-03-04 09:24:54 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								shutil.copytree('.', cppformat_dir, ignore=shutil.ignore_patterns(project_dir))
							 | 
						
					
						
							
								
									
										
										
										
											2015-03-03 21:45:47 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								for f in glob.glob('support/biicode/*'):
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  shutil.copy(f, cppformat_dir)
							 | 
						
					
						
							
								
									
										
										
										
											2015-03-04 09:24:54 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								check_call(['bii', 'cpp:build'], cwd=project_dir)
							 |