Add hematite

This commit is contained in:
Jeremy Soller 2018-12-13 12:04:14 -07:00
parent 8f1a0e4081
commit c4df5d226f
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

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