21 lines
		
	
	
		
			534 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			534 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| import os
 | |
| from SCons.Script import *
 | |
| 
 | |
| _REPO_NAME = 'rectpack2D'
 | |
| _REPO_URL = 'https://github.com/TeamHypersomnia/rectpack2D.git'
 | |
| 
 | |
| 
 | |
| def versions(env: Environment, update: bool = False):
 | |
|     return [(0, 0, 0)]
 | |
| 
 | |
| def dependencies(env: Environment, version) -> 'dict':
 | |
|     return {}
 | |
| 
 | |
| def cook(env: Environment, version) -> dict:
 | |
|     repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = 'master')
 | |
|     checkout_root = repo['checkout_root']
 | |
|     return {
 | |
|         'CPPPATH': [os.path.join(checkout_root, 'src')]
 | |
|     }
 |