Skip to content
Snippets Groups Projects
Commit 0e4ef3d2 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'Rust-Cairo' into 'master'

Cairo bindings for Rust with demo

See merge request !198
parents ea6fb1cf 701511fc
No related branches found
No related tags found
1 merge request!198Cairo bindings for Rust with demo
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
}
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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment