mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-11-05 04:06:38 +08:00
Add, fix, improve more recipes and convert rust-cairo demos to TOML
This commit is contained in:
parent
aa7d45676f
commit
78733081e6
@ -1,4 +1,4 @@
|
||||
#TODO glutin crate error
|
||||
#TODO update redox_syscall crate version
|
||||
[source]
|
||||
git = "https://github.com/pistondevelopers/piston-examples"
|
||||
shallow_clone = true
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#TODO x11rb, rustix and webbrowser crates error
|
||||
#TODO rfd crates error
|
||||
[source]
|
||||
git = "https://github.com/dimforge/rapier"
|
||||
shallow_clone = true
|
||||
|
||||
@ -4,10 +4,4 @@ git = "https://github.com/nidhoggfgg/rsille"
|
||||
shallow_clone = true
|
||||
[build]
|
||||
template = "cargo"
|
||||
cargoflags = ["--features=img"]
|
||||
cargoexamples = [
|
||||
"anime-mix",
|
||||
"obj-mix",
|
||||
"cube",
|
||||
"cube-colorful",
|
||||
]
|
||||
cargopath = "examples/rsille-showcase"
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/rust-cairo-demo.git
|
||||
BUILD_DEPENDS=(cairo expat fontconfig freetype2 libpng pixman zlib)
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
|
||||
-- \
|
||||
-L "${sysroot}/lib" \
|
||||
-l cairo \
|
||||
-l fontconfig \
|
||||
-l expat \
|
||||
-l pixman-1 \
|
||||
-l freetype \
|
||||
-l png \
|
||||
-l z
|
||||
skip=1
|
||||
}
|
||||
|
||||
15
recipes/wip/demos/rust-cairo-demo/recipe.toml
Normal file
15
recipes/wip/demos/rust-cairo-demo/recipe.toml
Normal file
@ -0,0 +1,15 @@
|
||||
#TODO compile and test
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/rust-cairo-demo"
|
||||
shallow_clone = true
|
||||
[build]
|
||||
template = "cargo"
|
||||
dependencies = [
|
||||
"cairo",
|
||||
"expat",
|
||||
"fontconfig",
|
||||
"freetype2",
|
||||
"libpng",
|
||||
"pixman",
|
||||
"zlib",
|
||||
]
|
||||
@ -1,25 +0,0 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/rust-cairo.git
|
||||
BUILD_DEPENDS=(cairo expat fontconfig freetype2 libpng pixman zlib)
|
||||
CARGOFLAGS="--example gui"
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
|
||||
-- \
|
||||
-L "${sysroot}/lib" \
|
||||
-l cairo \
|
||||
-l fontconfig \
|
||||
-l expat \
|
||||
-l pixman-1 \
|
||||
-l freetype \
|
||||
-l png \
|
||||
-l z
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
mkdir -pv "$dest/bin"
|
||||
cp -v "target/${TARGET}/release/examples/gui" "$dest/bin/rust-cairo"
|
||||
skip=1
|
||||
}
|
||||
16
recipes/wip/demos/rust-cairo/recipe.toml
Normal file
16
recipes/wip/demos/rust-cairo/recipe.toml
Normal file
@ -0,0 +1,16 @@
|
||||
#TODO compile and test
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/rust-cairo"
|
||||
shallow_clone = true
|
||||
[build]
|
||||
template = "cargo"
|
||||
cargoexamples = ["gui"]
|
||||
dependencies = [
|
||||
"cairo",
|
||||
"expat",
|
||||
"fontconfig",
|
||||
"freetype2",
|
||||
"libpng",
|
||||
"pixman",
|
||||
"zlib",
|
||||
]
|
||||
10
recipes/wip/dev/other/github-cli/recipe.toml
Normal file
10
recipes/wip/dev/other/github-cli/recipe.toml
Normal file
@ -0,0 +1,10 @@
|
||||
#TODO add script for gnu make: https://github.com/cli/cli/blob/trunk/docs/install_source.md
|
||||
[source]
|
||||
git = "https://github.com/cli/cli"
|
||||
rev = "v2.96.0"
|
||||
shallow_clone = true
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"host:go",
|
||||
]
|
||||
@ -1,6 +1,6 @@
|
||||
#TODO missing script for scons: https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_linuxbsd.html
|
||||
#TODO discover minimum dependencies from scons log
|
||||
[source]
|
||||
tar = "https://github.com/godotengine/godot/releases/download/4.5.1-stable/godot-4.5.1-stable.tar.xz"
|
||||
tar = "https://github.com/godotengine/godot/releases/download/4.7.1-stable/godot-4.7.1-stable.tar.xz"
|
||||
[build]
|
||||
template = "custom"
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
#TODO missing script for scons: https://docs.redotengine.org/en/stable/contributing/development/compiling/compiling_for_linuxbsd
|
||||
#TODO discover minimum dependencies from scons log
|
||||
[source]
|
||||
tar = "https://github.com/Redot-Engine/redot-engine/releases/download/redot-4.3.1-stable/Redot-4.3.1-stable.tar.xz"
|
||||
[build]
|
||||
template = "custom"
|
||||
6
recipes/wip/image/editors/svguru/recipe.toml
Normal file
6
recipes/wip/image/editors/svguru/recipe.toml
Normal file
@ -0,0 +1,6 @@
|
||||
#TODO compile and test
|
||||
[source]
|
||||
git = "https://github.com/4383/svguru"
|
||||
shallow_clone = true
|
||||
[build]
|
||||
template = "cargo"
|
||||
6
recipes/wip/image/viewers/svgtail/recipe.toml
Normal file
6
recipes/wip/image/viewers/svgtail/recipe.toml
Normal file
@ -0,0 +1,6 @@
|
||||
#TODO compile and test
|
||||
[source]
|
||||
git = "https://github.com/statusfailed/svgtail"
|
||||
shallow_clone = true
|
||||
[build]
|
||||
template = "cargo"
|
||||
Loading…
Reference in New Issue
Block a user