mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 14:24:18 +08:00
Add hematite
This commit is contained in:
parent
8f1a0e4081
commit
c4df5d226f
17
recipes/hematite/recipe.sh
Normal file
17
recipes/hematite/recipe.sh
Normal 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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user