Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wren Turkal
cookbook
Commits
701511fc
Commit
701511fc
authored
Dec 27, 2018
by
Michael Hölzl
Browse files
Cairo bindings for Rust with demo
parent
ea6fb1cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
recipes/rust-cairo-demo/recipe.sh
0 → 100644
View file @
701511fc
GIT
=
https://gitlab.redox-os.org/redox-os/rust-cairo-demo.git
BUILD_DEPENDS
=(
cairo zlib pixman freetype libpng
)
function
recipe_build
{
sysroot
=
"
$(
realpath
../sysroot
)
"
cp
-p
"
$ROOT
/Xargo.toml"
"Xargo.toml"
xargo rustc
--target
"
$TARGET
"
--release
${
CARGOFLAGS
}
\
--
\
-L
"
${
sysroot
}
/lib"
\
-l
cairo
\
-l
pixman-1
\
-l
freetype
\
-l
png
\
-l
z
skip
=
1
}
recipes/rust-cairo/recipe.sh
0 → 100644
View file @
701511fc
GIT
=
https://gitlab.redox-os.org/redox-os/rust-cairo.git
BUILD_DEPENDS
=(
cairo zlib pixman freetype libpng
)
CARGOFLAGS
=
"--example gui"
function
recipe_build
{
sysroot
=
"
$(
realpath
../sysroot
)
"
cp
-p
"
$ROOT
/Xargo.toml"
"Xargo.toml"
xargo rustc
--target
"
$TARGET
"
--release
${
CARGOFLAGS
}
\
--
\
-L
"
${
sysroot
}
/lib"
\
-l
cairo
\
-l
pixman-1
\
-l
freetype
\
-l
png
\
-l
z
skip
=
1
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment