From b2a81cadb91e13290a882c2400de2ebfdb26079f Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sat, 8 Jul 2023 11:20:28 +0200 Subject: [PATCH] Added recipe for argparse. --- recipes/argparse/recipe.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 recipes/argparse/recipe.py diff --git a/recipes/argparse/recipe.py b/recipes/argparse/recipe.py new file mode 100644 index 0000000..7ed1ffe --- /dev/null +++ b/recipes/argparse/recipe.py @@ -0,0 +1,10 @@ + +import os +from SCons.Script import * + +def cook(env: Environment, git_ref: str = "master") -> dict: + repo = env.Cook('GitBranch', repo_name = 'argparse', remote_url = 'https://github.com/p-ranav/argparse.git', git_ref = git_ref) + checkout_root = repo['checkout_root'] + return { + 'CPPPATH': [os.path.join(checkout_root, 'include')] + }