diff --git a/recipes/wip/demos/dioxus-examples/recipe.toml b/recipes/wip/demos/dioxus-examples/recipe.toml index 76e83f34e..d61ac78ff 100644 --- a/recipes/wip/demos/dioxus-examples/recipe.toml +++ b/recipes/wip/demos/dioxus-examples/recipe.toml @@ -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"] diff --git a/recipes/wip/demos/doomfire/recipe.toml b/recipes/wip/demos/doomfire/recipe.toml index ba74db077..e5d18f69c 100644 --- a/recipes/wip/demos/doomfire/recipe.toml +++ b/recipes/wip/demos/doomfire/recipe.toml @@ -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"] diff --git a/recipes/wip/demos/egui/recipe.toml b/recipes/wip/demos/egui/recipe.toml index 8903904ea..ac7e0ad41 100644 --- a/recipes/wip/demos/egui/recipe.toml +++ b/recipes/wip/demos/egui/recipe.toml @@ -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" ] diff --git a/recipes/wip/demos/globe-rs/recipe.toml b/recipes/wip/demos/globe-rs/recipe.toml index cc14a04fa..42046d16d 100644 --- a/recipes/wip/demos/globe-rs/recipe.toml +++ b/recipes/wip/demos/globe-rs/recipe.toml @@ -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"] diff --git a/recipes/wip/demos/imgui-examples/recipe.toml b/recipes/wip/demos/imgui-examples/recipe.toml index ace76bd38..c045c0de9 100644 --- a/recipes/wip/demos/imgui-examples/recipe.toml +++ b/recipes/wip/demos/imgui-examples/recipe.toml @@ -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 +""" diff --git a/recipes/wip/demos/lenia/recipe.toml b/recipes/wip/demos/lenia/recipe.toml index 92d4fcd38..bdc2b7011 100644 --- a/recipes/wip/demos/lenia/recipe.toml +++ b/recipes/wip/demos/lenia/recipe.toml @@ -1,4 +1,4 @@ -#TODO winit crate error (after cargo update) +#TODO update dependencies [source] git = "https://github.com/BirdbrainEngineer/lenia" shallow_clone = true diff --git a/recipes/wip/demos/mousefood/recipe.toml b/recipes/wip/demos/mousefood/recipe.toml index b132a298c..568c59071 100644 --- a/recipes/wip/demos/mousefood/recipe.toml +++ b/recipes/wip/demos/mousefood/recipe.toml @@ -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"] diff --git a/recipes/wip/dev/lang/micropython/recipe.toml b/recipes/wip/dev/lang/micropython/recipe.toml index c8c1e777e..25df760eb 100644 --- a/recipes/wip/dev/lang/micropython/recipe.toml +++ b/recipes/wip/dev/lang/micropython/recipe.toml @@ -13,6 +13,7 @@ template = "custom" script = """ rsync -av --delete "${COOKBOOK_SOURCE}/" ./ cd ports/unix +DYNAMIC_INIT make -C ../../mpy-cross MAKEFLAGS=( VARIANT=minimal diff --git a/recipes/wip/games/engines/box2d/recipe.toml b/recipes/wip/games/engines/box2d/recipe.toml new file mode 100644 index 000000000..4ec8e027d --- /dev/null +++ b/recipes/wip/games/engines/box2d/recipe.toml @@ -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", +] diff --git a/recipes/wip/games/engines/box3d/recipe.toml b/recipes/wip/games/engines/box3d/recipe.toml new file mode 100644 index 000000000..fa33206c9 --- /dev/null +++ b/recipes/wip/games/engines/box3d/recipe.toml @@ -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", +] diff --git a/recipes/wip/games/engines/joltphysics/recipe.toml b/recipes/wip/games/engines/joltphysics/recipe.toml new file mode 100644 index 000000000..92cf0466f --- /dev/null +++ b/recipes/wip/games/engines/joltphysics/recipe.toml @@ -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 +""" diff --git a/recipes/wip/games/engines/lovr-demos/recipe.toml b/recipes/wip/games/engines/lovr-demos/recipe.toml new file mode 100644 index 000000000..6fdac8b6a --- /dev/null +++ b/recipes/wip/games/engines/lovr-demos/recipe.toml @@ -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" +""" diff --git a/recipes/wip/games/engines/lovr/recipe.toml b/recipes/wip/games/engines/lovr/recipe.toml new file mode 100644 index 000000000..551d1014c --- /dev/null +++ b/recipes/wip/games/engines/lovr/recipe.toml @@ -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", +] diff --git a/recipes/wip/libs/other/openxr/recipe.toml b/recipes/wip/libs/other/openxr/recipe.toml new file mode 100644 index 000000000..351df1d09 --- /dev/null +++ b/recipes/wip/libs/other/openxr/recipe.toml @@ -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", +]