Cairo bindings for Rust with demo

This commit is contained in:
Michael Hölzl 2018-12-27 04:23:40 +01:00
parent ea6fb1cfc3
commit 701511fc3d
2 changed files with 35 additions and 0 deletions

View 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
}

View 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
}