diff --git a/recipes/rust-cairo-demo/recipe.sh b/recipes/rust-cairo-demo/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..9abd33d87808585416c83ac61a389b9792d4729b --- /dev/null +++ b/recipes/rust-cairo-demo/recipe.sh @@ -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 +} + diff --git a/recipes/rust-cairo/recipe.sh b/recipes/rust-cairo/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..345db4c83f49d769902311eda7fa1b70f0001ed6 --- /dev/null +++ b/recipes/rust-cairo/recipe.sh @@ -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 +} +