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

Add more iced examples

parent 3a8bfb97
No related branches found
No related tags found
No related merge requests found
...@@ -10,17 +10,23 @@ dependencies = [ ...@@ -10,17 +10,23 @@ dependencies = [
"zlib" "zlib"
] ]
script = """ script = """
set -x EXAMPLES=(
for example in styling tour game_of_life
do solar_system
${COOKBOOK_CARGO} rustc \ styling
--release \ tour
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ )
--package "${example}" \ set -x
-- \ for example in "${EXAMPLES[@]}"
-L "${COOKBOOK_SYSROOT}/lib" \ do
-C link-args="-Wl,-Bstatic $("${TARGET}-pkg-config" --libs osmesa) -lz -lstdc++ -lc -lgcc" ${COOKBOOK_CARGO} rustc \
mkdir -pv "${COOKBOOK_STAGE}/bin" --release \
cp -v "target/${TARGET}/release/${example}" "${COOKBOOK_STAGE}/bin/iced-${example}" --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
done --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
""" """
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment