(WIP) SQLite recipe.

This commit is contained in:
Patrick 2025-03-10 09:55:34 +01:00
parent b034e87aaf
commit 748f8f229f

23
recipes/sqlite/recipe.py Normal file
View File

@ -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
)