13 lines
		
	
	
		
			413 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			413 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| import os
 | |
| from SCons.Script import *
 | |
| 
 | |
| def cook(env: Environment, version: str = "1.85.0") -> dict:
 | |
|     # TODO: build binaries?
 | |
|     url = f'https://archives.boost.io/release/{version}/source/boost_{version.replace(".", "_")}.tar.gz'
 | |
|     repo = env.DownloadAndExtract(f'boost_{version}', url = url, skip_folders = 1)
 | |
|     checkout_root = repo['extracted_root']
 | |
|     return {
 | |
|         'CPPPATH': [checkout_root]
 | |
|     }
 |