Fix glutin and winit compilation

This commit is contained in:
Jeremy Soller 2018-12-10 18:58:33 -07:00
parent 20accfbf29
commit 30eaa01bea
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
2 changed files with 16 additions and 2 deletions

View File

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

View File

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