Added custom version of VulkanHeaders as an option to the recipe.

This commit is contained in:
Patrick 2023-12-07 17:42:08 +01:00
parent 6e88c408b7
commit 4859f40f8f

View File

@ -2,8 +2,11 @@
import os import os
from SCons.Script import * from SCons.Script import *
def cook(env: Environment, git_ref: str = "main") -> dict: def cook(env: Environment, remote: str = 'github', 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) 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'] checkout_root = repo['checkout_root']
return { return {
'CPPPATH': [os.path.join(checkout_root, 'include')] 'CPPPATH': [os.path.join(checkout_root, 'include')]