diff --git a/recipes/glutin/recipe.sh b/recipes/glutin/recipe.sh index e8600bd9b8b5678be5bdc6868b5c07005d4ccc15..80a4712e6076499ff531c464f16c0a1871c31851 100644 --- a/recipes/glutin/recipe.sh +++ b/recipes/glutin/recipe.sh @@ -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 +} diff --git a/recipes/winit/recipe.sh b/recipes/winit/recipe.sh index 48808d54d9ffd8472ef648b3a830625596720d88..eaa6196bbc92a0d745c62838c75794096dad74a1 100644 --- a/recipes/winit/recipe.sh +++ b/recipes/winit/recipe.sh @@ -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"