mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 12:24:17 +08:00
Cairo bindings for Rust with demo
This commit is contained in:
parent
ea6fb1cfc3
commit
701511fc3d
17
recipes/rust-cairo-demo/recipe.sh
Normal file
17
recipes/rust-cairo-demo/recipe.sh
Normal file
@ -0,0 +1,17 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/rust-cairo-demo.git
|
||||
BUILD_DEPENDS=(cairo zlib pixman freetype libpng)
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
cp -p "$ROOT/Xargo.toml" "Xargo.toml"
|
||||
xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
|
||||
-- \
|
||||
-L "${sysroot}/lib" \
|
||||
-l cairo \
|
||||
-l pixman-1 \
|
||||
-l freetype \
|
||||
-l png \
|
||||
-l z
|
||||
skip=1
|
||||
}
|
||||
|
||||
18
recipes/rust-cairo/recipe.sh
Normal file
18
recipes/rust-cairo/recipe.sh
Normal file
@ -0,0 +1,18 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/rust-cairo.git
|
||||
BUILD_DEPENDS=(cairo zlib pixman freetype libpng)
|
||||
CARGOFLAGS="--example gui"
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
cp -p "$ROOT/Xargo.toml" "Xargo.toml"
|
||||
xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
|
||||
-- \
|
||||
-L "${sysroot}/lib" \
|
||||
-l cairo \
|
||||
-l pixman-1 \
|
||||
-l freetype \
|
||||
-l png \
|
||||
-l z
|
||||
skip=1
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user