Add iced recipe

This commit is contained in:
Jeremy Soller 2022-11-30 07:16:12 -07:00
parent 3d72057d3a
commit 10a8221779
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE

23
recipes/iced/recipe.toml Normal file
View File

@ -0,0 +1,23 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/iced.git"
branch = "redox"
[build]
template = "custom"
dependencies = [
"llvm",
"mesa",
"zlib"
]
script = """
set -x
${COOKBOOK_CARGO} rustc \
--release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
--package styling \
-- \
-L "${COOKBOOK_SYSROOT}/lib" \
-C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lz -lstdc++ -lc -lgcc"
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp -v "target/${TARGET}/release/styling" "${COOKBOOK_STAGE}/bin/iced"
"""