From 748f8f229fb4ef2a725c1a12232882eb673af493 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Mon, 10 Mar 2025 09:55:34 +0100 Subject: [PATCH] (WIP) SQLite recipe. --- recipes/sqlite/recipe.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 recipes/sqlite/recipe.py 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 +) +