From e6b80628652f8a8cc03cd2229274c4c783ffd6f8 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Thu, 7 Dec 2023 17:42:23 +0100 Subject: [PATCH] Added recipe for MikkTSpace. --- recipes/mikktspace/recipe.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 recipes/mikktspace/recipe.py diff --git a/recipes/mikktspace/recipe.py b/recipes/mikktspace/recipe.py new file mode 100644 index 0000000..5692cd6 --- /dev/null +++ b/recipes/mikktspace/recipe.py @@ -0,0 +1,12 @@ + +import os +from SCons.Script import * + +def cook(env: Environment, git_ref: str = 'master') -> dict: + repo = env.Cook('GitBranch', repo_name = 'mikktspace', remote_url = 'https://github.com/mmikk/MikkTSpace.git', git_ref = git_ref) + lib_mikktspace = env.StaticLibrary( + CPPPATH = [repo['checkout_root']], + target = env['LIB_DIR'] + '/mikktspace', + source = [os.path.join(repo['checkout_root'], 'mikktspace.c')] + ) + return lib_mikktspace