mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 04:44:19 +08:00
WIP: pathfinder recipe
This commit is contained in:
parent
cbd903f0e6
commit
d487eb3af5
25
recipes/pathfinder/recipe.sh
Normal file
25
recipes/pathfinder/recipe.sh
Normal file
@ -0,0 +1,25 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/pathfinder.git
|
||||
BRANCH=redox
|
||||
GIT_UPSTREAM=https://github.com/servo/pathfinder.git
|
||||
BUILD_DEPENDS=(llvm mesa zlib)
|
||||
BRANCH=redox
|
||||
CARGOFLAGS="--manifest-path examples/canvas_glutin_minimal/Cargo.toml"
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
cp -p "$ROOT/Xargo.toml" "Xargo.toml"
|
||||
set -x
|
||||
xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
|
||||
-- \
|
||||
-L "${sysroot}/lib" \
|
||||
-C link-args="$("${PKG_CONFIG}" --libs osmesa) -lglapi -lz -lstdc++ -lc -lgcc"
|
||||
set +x
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
mkdir -pv "$dest/bin"
|
||||
cp -v "target/${TARGET}/release/canvas_glutin_minimal" "$dest/bin/pathfinder"
|
||||
skip=1
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user