Add, fix, improve some recipes and update TODOs

This commit is contained in:
Ribbon 2026-07-14 14:09:49 -03:00
parent eda7b95afc
commit c49c6b4e24
14 changed files with 132 additions and 24 deletions

View File

@ -1,4 +1,4 @@
#TODO wry crate error
#TODO wry and tao crate error
[source]
git = "https://github.com/DioxusLabs/dioxus"
shallow_clone = true
@ -11,7 +11,11 @@ cargoexamples = [
"file_explorer",
"hello_world",
"multiwindow",
"popup",
"window_popup",
"window_event",
"window_zoom",
]
cargopackages = [
"file-explorer",
]
dependencies = ["openssl3"]

View File

@ -1,9 +1,11 @@
#TODO discover how to build the "doomfire-minifb" example
#TODO update doomfire-minifb package dependencies
# to fix outdated redox_syscall, libc and minifb crates
# or use doomfire-sdl2 package, which needs libc crate update and manual library linkage
[source]
git = "https://github.com/r-marques/doomfire"
shallow_clone = true
[build]
template = "cargo"
cargopackages = [
"doomfire-minifb",
]
cargopath = "examples/doomfire-minifb"
#cargopath = "examples/doomfire-sdl2"
#dependencies = ["sdl2"]

View File

@ -1,9 +1,9 @@
#TODO glutin crate error
#TODO winit crate error
[source]
git = "https://github.com/emilk/egui"
shallow_clone = true
[build]
template = "cargo"
cargoexamples = [
"hello_world"
cargopackages = [
"hello_world_simple"
]

View File

@ -3,9 +3,5 @@
git = "https://github.com/adamsky/globe"
shallow_clone = true
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_cargo_packages globe-cli
mv "${COOKBOOK_STAGE}/usr/bin/globe" "${COOKBOOK_STAGE}/usr/bin/globe-rs"
"""
template = "cargo"
cargopackages = ["globe-cli"]

View File

@ -1,10 +1,19 @@
#TODO not compiled or tested
#TODO discover minimum dependencies from cmake log
#TODO compiled, ninja install error
# pull request: https://github.com/ocornut/imgui/pull/3027
[source]
git = "https://github.com/Qix-/imgui"
branch = "cmake"
shallow_clone = true
[build]
template = "cmake"
#dependencies = ["sdl2"]
template = "custom"
dependencies = ["sdl2"]
script = """
DYNAMIC_INIT
export CPPFLAGS="${CPPFLAGS} -I${COOKBOOK_SYSROOT}/include/SDL2"
COOKBOOK_CMAKE_FLAGS+=(
-DIMGUI_IMPL_GLFW=OFF
-DIMGUI_IMPL_GLUT=OFF
-DIMGUI_IMPL_OPENGL=OFF
)
cookbook_cmake
"""

View File

@ -1,4 +1,4 @@
#TODO winit crate error (after cargo update)
#TODO update dependencies
[source]
git = "https://github.com/BirdbrainEngineer/lenia"
shallow_clone = true

View File

@ -1,10 +1,8 @@
#TODO not compiled or tested
#TODO linking error
[source]
git = "https://github.com/j-g00da/mousefood"
shallow_clone = true
[build]
template = "cargo"
cargopackages = ["simulator"]
dependencies = [
"sdl2",
]
dependencies = ["sdl2"]

View File

@ -13,6 +13,7 @@ template = "custom"
script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
cd ports/unix
DYNAMIC_INIT
make -C ../../mpy-cross
MAKEFLAGS=(
VARIANT=minimal

View File

@ -0,0 +1,13 @@
#TODO compile and test
[source]
git = "https://github.com/erincatto/box2d"
rev = "v3.1.1"
shallow_clone = true
[build]
template = "cmake"
cmakeflags = [
"-DBUILD_SHARED_LIBS=ON",
"-DBOX2D_BENCHMARKS=ON",
"-DBOX2D_VALIDATE=OFF",
"-DBOX2D_UNIT_TESTS=OFF",
]

View File

@ -0,0 +1,13 @@
#TODO compile and test
[source]
git = "https://github.com/erincatto/box3d"
rev = "v0.1.0"
shallow_clone = true
[build]
template = "cmake"
cmakeflags = [
"-DBUILD_SHARED_LIBS=ON",
"-DBOX3D_BENCHMARKS=ON",
"-DBOX3D_UNIT_TESTS=OFF",
"-DBOX3D_VALIDATE=OFF",
]

View File

@ -0,0 +1,28 @@
#TODO compile and test
[source]
git = "https://github.com/jrouwe/JoltPhysics"
rev = "v5.6.0"
shallow_clone = true
[build]
template = "custom"
dependencies = [
"libvulkan",
]
script = """
DYNAMIC_INIT
COOKBOOK_CMAKE_FLAGS+=(
-DJPH_BUILD_SHARED_LIBS=ON
-DTARGET_UNIT_TESTS=OFF
-DTARGET_VIEWER=OFF
-DGENERATE_DEBUG_SYMBOLS=OFF
-DOVERRIDE_CXX_FLAGS=OFF # used to force debug mode?
-DFLOATING_POINT_EXCEPTIONS_ENABLED=OFF
-DDEBUG_RENDERER_IN_DEBUG_AND_RELEASE=OFF
-DPROFILER_IN_DEBUG_AND_RELEASE=OFF
-DDISABLE_CUSTOM_ALLOCATOR=ON
-DJPH_USE_DX12=OFF
-DJPH_USE_VK=OFF
-DJPH_USE_MTL=OFF
)
cookbook_cmake "${COOKBOOK_SOURCE}"/Build
"""

View File

@ -0,0 +1,11 @@
#TODO compile and test
[source]
git = "https://github.com/bjornbytes/lovr-docs"
branch = "v0.19.0"
shallow_clone = true
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/usr/share/lovr"
cp -rv "${COOKBOOK_SOURCE}"/examples/* "${COOKBOOK_STAGE}/usr/share/lovr"
"""

View File

@ -0,0 +1,25 @@
#TODO compile and test
# build instructions: https://lovr.org/docs/Compiling
[source]
git = "https://github.com/bjornbytes/lovr"
rev = "v0.19.0"
shallow_clone = true
[build]
template = "cmake"
cmakeflags = [
"-DLOVR_ENABLE_AUDIO=OFF",
"-DLOVR_ENABLE_HEADSET=OFF",
"-DLOVR_ENABLE_PHYSICS=OFF",
"-DLOVR_SYSTEM_GLFW=ON",
"-DLOVR_SYSTEM_LUA=ON",
#"-DLOVR_SYSTEM_OPENXR=ON",
]
dependencies = [
"glfw3",
#"openxr",
]
[package]
dependencies = [
"luajit",
"lovr-demos",
]

View File

@ -0,0 +1,8 @@
#TODO compile and test
[source]
tar = "https://github.com/KhronosGroup/OpenXR-SDK-Source/releases/download/release-1.1.61/OpenXR-SDK-Source-release-1.1.61.tar.gz"
[build]
template = "cmake"
dev-dependencies = [
"host:python312",
]