Install iced tour as well as styling example

This commit is contained in:
Jeremy Soller 2022-12-06 08:44:12 -07:00
parent 6545cf036d
commit f1087a3ed8
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE

View File

@ -11,13 +11,16 @@ dependencies = [
]
script = """
set -x
${COOKBOOK_CARGO} rustc \
--release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
--package styling \
-- \
-L "${COOKBOOK_SYSROOT}/lib" \
-C link-args="-Wl,-Bstatic $("${TARGET}-pkg-config" --libs osmesa) -lz -lstdc++ -lc -lgcc"
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp -v "target/${TARGET}/release/styling" "${COOKBOOK_STAGE}/bin/iced"
for example in styling tour
do
${COOKBOOK_CARGO} rustc \
--release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
--package "${example}" \
-- \
-L "${COOKBOOK_SYSROOT}/lib" \
-C link-args="-Wl,-Bstatic $("${TARGET}-pkg-config" --libs osmesa) -lz -lstdc++ -lc -lgcc"
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp -v "target/${TARGET}/release/${example}" "${COOKBOOK_STAGE}/bin/iced-${example}"
done
"""