diff --git a/recipes/sqlite/recipe.py b/recipes/sqlite/recipe.py new file mode 100644 index 0000000..1358afb --- /dev/null +++ b/recipes/sqlite/recipe.py @@ -0,0 +1,23 @@ + +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 +) +