14 lines
568 B
Python
14 lines
568 B
Python
|
|
import os
|
|
from SCons.Script import *
|
|
|
|
def cook(env: Environment, remote: str = 'github', git_ref: str = 'main') -> dict:
|
|
if remote == 'mewin':
|
|
repo = env.GitBranch(repo_name = 'VulkanHeaders_mewin', remote_url = 'https://git.mewin.de/mewin/vulkan-headers.git', git_ref = git_ref)
|
|
else:
|
|
repo = env.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')]
|
|
}
|