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