13 lines
		
	
	
		
			483 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			483 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| import os
 | |
| from SCons.Script import *
 | |
| 
 | |
| def cook(env: Environment, git_ref: str = 'master') -> dict:
 | |
|     repo = env.GitBranch(repo_name = 'zlib', remote_url = 'https://github.com/madler/zlib.git', git_ref = git_ref)
 | |
|     extracted_root = repo['checkout_root']
 | |
|     build_result = env.CMakeProject(project_root=extracted_root)
 | |
|     return {
 | |
|         'CPPPATH': [os.path.join(build_result['install_dir'], 'install')],
 | |
|         'LIBS': [env.FindLib('z', paths=build_result['LIBPATH'])]
 | |
|     }
 |