From a7c736de56b438d2e47b074fc1b06d05cd7a0c35 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Thu, 19 Sep 2024 14:57:37 +0200 Subject: [PATCH] Added recipe for rectpack2D. --- recipes/rectpack2D/recipe.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 recipes/rectpack2D/recipe.py diff --git a/recipes/rectpack2D/recipe.py b/recipes/rectpack2D/recipe.py new file mode 100644 index 0000000..b2d89e7 --- /dev/null +++ b/recipes/rectpack2D/recipe.py @@ -0,0 +1,20 @@ + +import os +from SCons.Script import * + +_REPO_NAME = 'rectpack2D' +_REPO_URL = 'https://github.com/TeamHypersomnia/rectpack2D.git' + + +def versions(env: Environment, update: bool = False): + return [(0, 0, 0)] + +def dependencies(env: Environment, version) -> 'dict': + return {} + +def cook(env: Environment, version) -> dict: + repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = 'master') + checkout_root = repo['checkout_root'] + return { + 'CPPPATH': [os.path.join(checkout_root, 'src')] + }