Added recipe for portable-file-dialogs.
This commit is contained in:
parent
ae739b9946
commit
71f8631e48
22
recipes/portable-file-dialogs/recipe.py
Normal file
22
recipes/portable-file-dialogs/recipe.py
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
import re
|
||||
from SCons.Script import *
|
||||
|
||||
|
||||
def _git_cook(env: Environment, repo: dict) -> dict:
|
||||
checkout_root = repo['checkout_root']
|
||||
|
||||
return {
|
||||
'CPPPATH': [checkout_root]
|
||||
}
|
||||
|
||||
|
||||
env.GitRecipe(
|
||||
globals = globals(),
|
||||
repo_name = 'portable-file-dialogs',
|
||||
repo_url = 'https://github.com/samhocevar/portable-file-dialogs.git',
|
||||
tag_pattern = re.compile(r'^([0-9]+)\.([0-9]+)\.([0-9]+)$'),
|
||||
tag_fn = lambda version: f'{version[0]}.{version[1]}.{version[2]}',
|
||||
cook_fn = _git_cook
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user