mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 05:14:18 +08:00
Merge branch 'Rust-Cairo' into 'master'
Cairo bindings for Rust with demo See merge request redox-os/cookbook!198
This commit is contained in:
commit
0e4ef3d243
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