You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					39 lines
				
				831 B
			
		
		
			
		
	
	
					39 lines
				
				831 B
			|   
											13 years ago
										 | """
 | ||
|  |              LUFA Library | ||
|  |      Copyright (C) Dean Camera, 2013. | ||
|  | 
 | ||
|  |   dean [at] fourwalledcubicle [dot] com | ||
|  |            www.lufa-lib.org | ||
|  | """
 | ||
|  | 
 | ||
|  | import sys | ||
|  | sys.path.append("ProjectGenerator") | ||
|  | 
 | ||
|   
											13 years ago
										 | 
 | ||
|   
											13 years ago
										 | def show_message(message): | ||
|  | 	print "[Project Generator] %s" % message | ||
|  | 	sys.stdout.flush() | ||
|  | 
 | ||
|  | 
 | ||
|  | def main(lufa_root_path): | ||
|   
											13 years ago
										 | 	try: | ||
|  | 		from asf_avrstudio5_interface import PythonFacade | ||
|  | 	except ImportError: | ||
|   
											13 years ago
										 | 		print "Fatal Error: The ASF project generator is missing." | ||
|   
											13 years ago
										 | 		return 1 | ||
|   
											13 years ago
										 | 
 | ||
|   
											13 years ago
										 | 	p = PythonFacade(lufa_root_path) | ||
|   
											13 years ago
										 | 
 | ||
|   
											13 years ago
										 | 	show_message("Checking database sanity...") | ||
|  | 	p.check_extension_database_sanity(lufa_root_path) | ||
|   
											13 years ago
										 | 
 | ||
|   
											13 years ago
										 | 	show_message("Building cache files...") | ||
|  | 	p.generate_extension_cache_files(lufa_root_path) | ||
|   
											13 years ago
										 | 
 | ||
|   
											13 years ago
										 | 	show_message("Cache files created.") | ||
|   
											13 years ago
										 | 	return 0 | ||
|   
											13 years ago
										 | 
 | ||
|  | 
 | ||
|  | if __name__ == "__main__": | ||
|   
											13 years ago
										 |     sys.exit(main(sys.argv[1])) |