From dea422bac35d49593bf1489963311b2a1b296648 Mon Sep 17 00:00:00 2001
From: Patrick Wuttke
Date: Mon, 20 Oct 2025 14:59:19 +0200
Subject: [PATCH] Added ImPlot recipe.
---
recipes/implot/recipe.py | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 recipes/implot/recipe.py
diff --git a/recipes/implot/recipe.py b/recipes/implot/recipe.py
new file mode 100644
index 0000000..ac0949a
--- /dev/null
+++ b/recipes/implot/recipe.py
@@ -0,0 +1,35 @@
+
+
+import re
+from SCons.Script import *
+
+def _git_cook(env: Environment, repo: dict, options: dict) -> dict:
+ implot_source_files = [
+ os.path.join(repo['checkout_root'], 'implot.cpp'),
+ os.path.join(repo['checkout_root'], 'implot_items.cpp')
+ ]
+
+ lib_implot = env.StaticLibrary(
+ CPPPATH = [repo['checkout_root']],
+ target = env['LIB_DIR'] + '/implot',
+ source = implot_source_files,
+ dependencies = {
+ 'imgui': {}
+ }
+ )
+ return {
+ 'CPPPATH': [repo['checkout_root']],
+ 'LIBS': [lib_implot]
+ }
+
+env.GitRecipe(
+ globals = globals(),
+ repo_name = 'implot',
+ repo_url = 'https://github.com/epezent/implot.git',
+ tag_pattern = re.compile(r'^v([0-9]+)\.([0-9]+)$'),
+ tag_fn = lambda version: f'v{version[0]}.{version[1]}',
+ cook_fn = _git_cook,
+ dependencies = {
+ 'imgui': {}
+ }
+)