From f1087a3ed89925e51f06b4bbd5a6bf924d3a57f9 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Tue, 6 Dec 2022 08:44:12 -0700
Subject: [PATCH] Install iced tour as well as styling example

---
 recipes/iced/recipe.toml | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/recipes/iced/recipe.toml b/recipes/iced/recipe.toml
index 2dfd3f8e6..d4595a44c 100644
--- a/recipes/iced/recipe.toml
+++ b/recipes/iced/recipe.toml
@@ -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
 """
-- 
GitLab