Commit 701511fc authored by Michael Hölzl's avatar Michael Hölzl

Cairo bindings for Rust with demo

parent ea6fb1cf
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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment