mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 20:34:17 +08:00
Fix glutin and winit compilation
This commit is contained in:
parent
20accfbf29
commit
30eaa01bea
@ -1,4 +1,18 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/glutin.git
|
||||
GIT_UPSTREAM=https://github.com/tomaka/glutin.git
|
||||
GIT_BRANCH=redox
|
||||
BUILD_DEPENDS=(mesa)
|
||||
BRANCH=redox
|
||||
CARGOFLAGS="--example window"
|
||||
|
||||
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 pthread \
|
||||
-l stdc++
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/winit.git
|
||||
GIT_UPSTREAM=https://github.com/tomaka/winit.git
|
||||
GIT_BRANCH=redox
|
||||
BRANCH=redox
|
||||
CARGOFLAGS="--example window"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user