From e1de5cd57e3281f395df3a3376ae9ead7f720598 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Mon, 16 Jun 2025 20:28:22 -0300 Subject: [PATCH] Add imgui recipes --- recipes/wip/demos/imgui-examples/recipe.toml | 21 ++++++++++++++++++++ recipes/wip/libs/gui/imgui/recipe.toml | 21 ++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 recipes/wip/demos/imgui-examples/recipe.toml create mode 100644 recipes/wip/libs/gui/imgui/recipe.toml diff --git a/recipes/wip/demos/imgui-examples/recipe.toml b/recipes/wip/demos/imgui-examples/recipe.toml new file mode 100644 index 000000000..e7fd0be2f --- /dev/null +++ b/recipes/wip/demos/imgui-examples/recipe.toml @@ -0,0 +1,21 @@ +#TODO build sdl2 opengl examples +[source] +git = "https://github.com/Qix-/imgui" +branch = "cmake" +[build] +template = "custom" +script = """ +COOKBOOK_CONFIGURE="cmake" +COOKBOOK_CONFIGURE_FLAGS=( + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_CROSSCOMPILING=True + -DCMAKE_EXE_LINKER_FLAGS="-static" + -DCMAKE_INSTALL_PREFIX="/" + -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}" + -DCMAKE_SYSTEM_NAME=Generic + -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)" + -DCMAKE_VERBOSE_MAKEFILE=On +"${COOKBOOK_SOURCE}" +) +cookbook_configure +""" diff --git a/recipes/wip/libs/gui/imgui/recipe.toml b/recipes/wip/libs/gui/imgui/recipe.toml new file mode 100644 index 000000000..c59426e1f --- /dev/null +++ b/recipes/wip/libs/gui/imgui/recipe.toml @@ -0,0 +1,21 @@ +#TODO not compiled or tested +[source] +git = "https://github.com/Qix-/imgui" +branch = "cmake" +[build] +template = "custom" +script = """ +COOKBOOK_CONFIGURE="cmake" +COOKBOOK_CONFIGURE_FLAGS=( + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_CROSSCOMPILING=True + -DCMAKE_EXE_LINKER_FLAGS="-static" + -DCMAKE_INSTALL_PREFIX="/" + -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}" + -DCMAKE_SYSTEM_NAME=Generic + -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)" + -DCMAKE_VERBOSE_MAKEFILE=On +"${COOKBOOK_SOURCE}" +) +cookbook_configure +"""