mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 12:54:20 +08:00
Add more iced examples
This commit is contained in:
parent
3a8bfb9735
commit
7aa519b04c
@ -10,17 +10,23 @@ dependencies = [
|
||||
"zlib"
|
||||
]
|
||||
script = """
|
||||
set -x
|
||||
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
|
||||
EXAMPLES=(
|
||||
game_of_life
|
||||
solar_system
|
||||
styling
|
||||
tour
|
||||
)
|
||||
set -x
|
||||
for example in "${EXAMPLES[@]}"
|
||||
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
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user