From ddc0c7aee0b80b4228ab9499360f0d376dfaab9e Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 2 Jun 2023 11:19:26 +0200 Subject: Update embedded resources management --- tools/embedded.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tools/embedded.sh') diff --git a/tools/embedded.sh b/tools/embedded.sh index 0d8f925..6acbfab 100755 --- a/tools/embedded.sh +++ b/tools/embedded.sh @@ -3,8 +3,14 @@ ########## RESOURCES ########## ressources=$(cat <<-EndOfResources +assets/boards/chesscom_8bits.png +assets/pieces/cburnett.png +assets/icons/hide.png +assets/icons/mat.png assets/icons/ochess.png -assets/icons/ochess.svg +assets/icons/swap.png +assets/icons/zoomin.png +assets/icons/zoomout.png EndOfResources ) ############################### @@ -28,9 +34,9 @@ do name_std=${name}_${ext}.hpp # Header name standard out="${dst}/${name_std}" echo "- Generating ${name_std} resource..." - bin2c "$res" "${name}_${ext}" # TODO: Apply! + bin2c "$res" "${name}_${ext}" > "$out" [ -z "$includes" ] && includes="${name_std}" || includes="${includes} ${name_std}" done -echo "Please add the following includes to binres.hpp:" +echo "Please update the binres.cpp and binres.hpp to reflect these changes." echo "$includes"|tr "[:space:]" "\n"|awk '{print("#include \""$1"\"")}' -- cgit v1.2.3