diff --git a/recipes/VulkanHeaders/recipe.py b/recipes/VulkanHeaders/recipe.py index 5314e97..2f402e0 100644 --- a/recipes/VulkanHeaders/recipe.py +++ b/recipes/VulkanHeaders/recipe.py @@ -2,8 +2,11 @@ import os from SCons.Script import * -def cook(env: Environment, git_ref: str = "main") -> dict: - repo = env.Cook('GitBranch', repo_name = 'VulkanHeaders', remote_url = 'https://github.com/KhronosGroup/Vulkan-Headers.git', git_ref = git_ref) +def cook(env: Environment, remote: str = 'github', git_ref: str = 'main') -> dict: + if remote == 'mewin': + repo = env.Cook('GitBranch', repo_name = 'VulkanHeaders_mewin', remote_url = 'https://git.mewin.de/mewin/vulkan-headers.git', git_ref = git_ref) + else: + repo = env.Cook('GitBranch', repo_name = 'VulkanHeaders', remote_url = 'https://github.com/KhronosGroup/Vulkan-Headers.git', git_ref = git_ref) checkout_root = repo['checkout_root'] return { 'CPPPATH': [os.path.join(checkout_root, 'include')]