From dedad064198b36fe539c247ed729253b1062b4fe Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Wed, 8 Nov 2023 00:23:58 +0100 Subject: [PATCH] Added stb. --- recipes/stb/recipe.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 recipes/stb/recipe.py diff --git a/recipes/stb/recipe.py b/recipes/stb/recipe.py new file mode 100644 index 0000000..bcc18ca --- /dev/null +++ b/recipes/stb/recipe.py @@ -0,0 +1,9 @@ + +from SCons.Script import * + +def cook(env: Environment, git_ref: str = "master") -> dict: + repo = env.Cook('GitBranch', repo_name = 'stb', remote_url = 'https://github.com/nothings/stb.git', git_ref = git_ref) + checkout_root = repo['checkout_root'] + return { + 'CPPPATH': [checkout_root] + }