diff --git a/recipes/hematite/recipe.sh b/recipes/hematite/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..1eac2e09ae7281cad9456db4c3ba93ad2c039ba4 --- /dev/null +++ b/recipes/hematite/recipe.sh @@ -0,0 +1,17 @@ +GIT=https://gitlab.redox-os.org/redox-os/hematite.git +GIT_UPSTREAM=https://github.com/PistonDevelopers/hematite.git +BUILD_DEPENDS=(mesa) +BRANCH=redox + +function recipe_build { + sysroot="$(realpath ../sysroot)" + cp -p "$ROOT/Xargo.toml" "Xargo.toml" + xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \ + -- \ + -L "${sysroot}/lib" \ + -l OSMesa \ + -l glapi \ + -l stdc++ \ + -C link-args="-Wl,--whole-archive -lpthread -Wl,--no-whole-archive" + skip=1 +}