Skip to content
Snippets Groups Projects
Commit 701511fc authored by Michael Hölzl's avatar Michael Hölzl
Browse files

Cairo bindings for Rust with demo

parent ea6fb1cf
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