Skip to content
Snippets Groups Projects
Verified Commit cf861a66 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Use cargo instead of xargo for rust-cairo and rust-cairo-demo

parent f848f9f8
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ BUILD_DEPENDS=(cairo expat fontconfig freetype libpng pixman zlib) ...@@ -4,7 +4,7 @@ BUILD_DEPENDS=(cairo expat fontconfig freetype libpng pixman zlib)
function recipe_build { function recipe_build {
sysroot="$(realpath ../sysroot)" sysroot="$(realpath ../sysroot)"
cp -p "$ROOT/Xargo.toml" "Xargo.toml" cp -p "$ROOT/Xargo.toml" "Xargo.toml"
xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \ cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
-- \ -- \
-L "${sysroot}/lib" \ -L "${sysroot}/lib" \
-l cairo \ -l cairo \
......
...@@ -5,7 +5,7 @@ CARGOFLAGS="--example gui" ...@@ -5,7 +5,7 @@ CARGOFLAGS="--example gui"
function recipe_build { function recipe_build {
sysroot="$(realpath ../sysroot)" sysroot="$(realpath ../sysroot)"
cp -p "$ROOT/Xargo.toml" "Xargo.toml" cp -p "$ROOT/Xargo.toml" "Xargo.toml"
xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \ cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
-- \ -- \
-L "${sysroot}/lib" \ -L "${sysroot}/lib" \
-l cairo \ -l cairo \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment