from SCons.Script import * def cook(env: Environment, remote: str = 'github', git_ref: str = "master") -> dict: if remote == 'mewin': repo = env.Cook('GitBranch', repo_name = 'glm_mewin', remote_url = 'https://git.mewin.de/mewin/glm.git', git_ref = git_ref) else: repo = env.Cook('GitBranch', repo_name = 'glm', remote_url = 'https://github.com/g-truc/glm.git', git_ref = git_ref) checkout_root = repo['checkout_root'] return { 'CPPPATH': [checkout_root], }