From 41f8b810972f67a72e09b8b17bbd1d7b99a85d0d Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sun, 26 Nov 2023 13:13:27 +0100 Subject: [PATCH] Added support for mewin.de branch of glm. --- recipes/glm/recipe.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/recipes/glm/recipe.py b/recipes/glm/recipe.py index b8e8bcf..61d3399 100644 --- a/recipes/glm/recipe.py +++ b/recipes/glm/recipe.py @@ -1,9 +1,11 @@ -import os from SCons.Script import * -def cook(env: Environment, git_ref: str = "master") -> dict: - repo = env.Cook('GitBranch', repo_name = 'glm', remote_url = 'https://github.com/g-truc/glm.git', git_ref = git_ref) +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 {