From 321f003b100d56dd180f3584db4880c96a925c9f Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Fri, 24 Nov 2023 22:13:41 +0100 Subject: [PATCH] Added cgltf recipe. --- recipes/cgltf/recipe.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 recipes/cgltf/recipe.py diff --git a/recipes/cgltf/recipe.py b/recipes/cgltf/recipe.py new file mode 100644 index 0000000..475784d --- /dev/null +++ b/recipes/cgltf/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 = 'cgltf', remote_url = 'https://github.com/jkuhlmann/cgltf.git', git_ref = git_ref) + checkout_root = repo['checkout_root'] + return { + 'CPPPATH': [checkout_root] + }