20 lines
448 B
Python
20 lines
448 B
Python
|
|
import re
|
|
from SCons.Script import *
|
|
|
|
def _git_cook(env: Environment, repo) -> dict:
|
|
checkout_root = repo['checkout_root']
|
|
return {
|
|
'CPPPATH': [checkout_root]
|
|
}
|
|
|
|
|
|
env.GitRecipe(
|
|
globals = globals(),
|
|
repo_name = 'cgltf',
|
|
repo_url = 'https://github.com/jkuhlmann/cgltf.git',
|
|
tag_pattern = re.compile(r'^v([0-9]+)\.([0-9]+)$'),
|
|
tag_fn = lambda version: f'v{version[0]}.{version[1]}',
|
|
cook_fn = _git_cook
|
|
)
|