mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 05:14:18 +08:00
Update webrender recipe
This commit is contained in:
parent
d3225d91ea
commit
3a8bfb9735
@ -5,17 +5,16 @@ BUILD_DEPENDS=(freetype libpng llvm mesa zlib)
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
cp -p "$ROOT/Xargo.toml" "Xargo.toml"
|
||||
for rs in $(find examples/ -maxdepth 1 -type f -name '*.rs')
|
||||
do
|
||||
bin="$(basename "$rs" .rs)"
|
||||
set -x
|
||||
xargo rustc --target "$TARGET" --release --manifest-path examples/Cargo.toml --bin "$bin" \
|
||||
cargo rustc --target "$TARGET" --release --manifest-path examples/Cargo.toml --bin "$bin" \
|
||||
-- \
|
||||
-L "${sysroot}/lib" \
|
||||
-l static=freetype \
|
||||
-l static=png \
|
||||
-C link-args="$("${PKG_CONFIG}" --libs osmesa) -lglapi -lz -lstdc++ -lc -lgcc"
|
||||
-C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lz -lstdc++ -lc -lgcc"
|
||||
set +x
|
||||
done
|
||||
skip=1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user